From f9264de0dcf0cf3580ea29a2913a45439bce7b74 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20FRANCE?= Date: Tue, 4 Jun 2024 19:23:04 +0200 Subject: [PATCH] fix cti (#29837) --- htdocs/webportal/class/html.formlistwebportal.class.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/htdocs/webportal/class/html.formlistwebportal.class.php b/htdocs/webportal/class/html.formlistwebportal.class.php index a7b2f21a4d3..6412ce1de41 100644 --- a/htdocs/webportal/class/html.formlistwebportal.class.php +++ b/htdocs/webportal/class/html.formlistwebportal.class.php @@ -580,8 +580,10 @@ class FormListWebPortal // Loop on record // -------------------------------------------------------------------- $i = 0; - $totalarray = array(); - $totalarray['nbfield'] = 0; + $totalarray = [ + 'nbfield' => 0, + 'totalizable' => [], + ]; $imaxinloop = ($limit ? min($num, $limit) : $num); while ($i < $imaxinloop) { $obj = $this->db->fetch_object($resql);