From 811adad8c81f117bfbf6d75586f07d6650310a51 Mon Sep 17 00:00:00 2001 From: VESSILLER Date: Thu, 26 Dec 2019 10:34:10 +0100 Subject: [PATCH] FIX notice var nbfield of array not initialized --- htdocs/projet/list.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/htdocs/projet/list.php b/htdocs/projet/list.php index 2f7e30641b7..15464de2f9c 100644 --- a/htdocs/projet/list.php +++ b/htdocs/projet/list.php @@ -701,8 +701,10 @@ print_liste_field_titre($selectedfields, $_SERVER["PHP_SELF"], "", '', '', '', $ print "\n"; $i = 0; -$totalarray = array(); -$totalarray['val'] = array(); +$totalarray = array( + 'nbfield' => 0, + 'val' => array(), +); while ($i < min($num, $limit)) { $obj = $db->fetch_object($resql);