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']++; } }