From b626dc93fd919df6590633cae140ad633fd5efd6 Mon Sep 17 00:00:00 2001 From: Thibaud Ajas Date: Fri, 30 Jun 2017 15:30:27 +0200 Subject: [PATCH] bugfixe - Notice error --- src/Template/Materiels/view.ctp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Template/Materiels/view.ctp b/src/Template/Materiels/view.ctp index 2b1c870..951c0e8 100755 --- a/src/Template/Materiels/view.ctp +++ b/src/Template/Materiels/view.ctp @@ -456,7 +456,7 @@ $USER_IS_RESPONSABLE_AND_SAME_GROUP = } $style = ''; - if ( $dateFin !== NULL && $today >= $dateFin ) $style = 'style="color: #FF0000"'; + if ( isset($dateFin) && $today >= $dateFin ) $style = 'style="color: #FF0000"'; $type = ""; if (h($materiel->materiel_administratif) == 1 && h($materiel->materiel_technique) == 1) $type = 'Administratif et technique'; else if (h($materiel->materiel_administratif) == 1) $type = 'Administratif'; -- libgit2 0.21.2