From 67cd41fe175dfab12384c2179f3742650b6eee9f Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Thu, 2 Sep 2021 19:20:21 +0200 Subject: [PATCH] Update list.php --- htdocs/societe/list.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/htdocs/societe/list.php b/htdocs/societe/list.php index 62922eb8cb8..ca4793c2c60 100644 --- a/htdocs/societe/list.php +++ b/htdocs/societe/list.php @@ -1513,7 +1513,7 @@ while ($i < min($num, $limit)) { } print empty($typenArray[$obj->typent_code]) ? '' : $typenArray[$obj->typent_code]; print ''; - if (empty($i)) { + if (!$i) { $totalarray['nbfield']++; } } @@ -1532,19 +1532,19 @@ while ($i < min($num, $limit)) { } print $staffArray[$obj->staff_code]; print ''; - if (empty($i)) { + if (!$i) { $totalarray['nbfield']++; } } if (!empty($arrayfields['s.email']['checked'])) { print ''.dol_print_email($obj->email, $obj->rowid, $obj->socid, 'AC_EMAIL', 0, 0, 1)."\n"; - if (empty($i)) { + if (!$i) { $totalarray['nbfield']++; } } if (!empty($arrayfields['s.phone']['checked'])) { print ''.dol_print_phone($obj->phone, $obj->country_code, 0, $obj->rowid, 'AC_TEL', ' ', 'phone')."\n"; - if (empty($i)) { + if (!$i) { $totalarray['nbfield']++; } }