Commit b626dc93fd919df6590633cae140ad633fd5efd6
1 parent
a0fefb3d
Exists in
master
and in
3 other branches
bugfixe - Notice error
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
src/Template/Materiels/view.ctp
... | ... | @@ -456,7 +456,7 @@ $USER_IS_RESPONSABLE_AND_SAME_GROUP = |
456 | 456 | } |
457 | 457 | |
458 | 458 | $style = ''; |
459 | - if ( $dateFin !== NULL && $today >= $dateFin ) $style = 'style="color: #FF0000"'; | |
459 | + if ( isset($dateFin) && $today >= $dateFin ) $style = 'style="color: #FF0000"'; | |
460 | 460 | $type = ""; |
461 | 461 | if (h($materiel->materiel_administratif) == 1 && h($materiel->materiel_technique) == 1) $type = 'Administratif et technique'; |
462 | 462 | else if (h($materiel->materiel_administratif) == 1) $type = 'Administratif'; | ... | ... |