From b8c3bd8f41f5af62fb59d860fa95eaca0f361ea5 Mon Sep 17 00:00:00 2001 From: HENRY Florian Date: Thu, 21 Nov 2024 17:19:52 +0100 Subject: [PATCH] 20 fix php warning (#32029) * fix: php warning intervention when FICHINTER_DISABLE_DETAILS is set * Update list.php --------- Co-authored-by: Laurent Destailleur --- htdocs/fichinter/list.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/fichinter/list.php b/htdocs/fichinter/list.php index 30bfffaaf1b..08b4b55373a 100644 --- a/htdocs/fichinter/list.php +++ b/htdocs/fichinter/list.php @@ -1025,7 +1025,7 @@ while ($i < $imaxinloop) { print ''."\n"; - $total += $obj->duree; + $total += (isset($obj->duree) ? $obj->duree : 0); } $i++; }