fix: scrutinizer

This commit is contained in:
Florian HENRY 2021-10-21 15:57:54 +02:00
parent 0589c9c3ca
commit 2e260d75d9

View File

@ -770,7 +770,7 @@ if ($type == Categorie::TYPE_CONTACT) {
print '<table class="noborder centpercent">'."\n";
print '<tr class="liste_titre"><td colspan="2">'.$langs->trans("Ref").'</td></tr>'."\n";
if (count($contacts) > 0) {
if (is_array($contacts) && count($contacts) > 0) {
$i = 0;
foreach ($contacts as $key => $contact) {
$i++;