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);