This commit is contained in:
Laurent Destailleur
2024-07-24 18:03:53 +02:00
parent 746d5050ad
commit 5eb0e0785a
2 changed files with 2 additions and 2 deletions

View File

@@ -1382,7 +1382,7 @@ class pdf_zenith extends ModelePDFSupplierProposal
} else {
$arrayidcontact = array_merge($object->getIdContact('external', 'CUSTOMER'), $object->getIdContact('external', 'BILLING'));
}
if (count($arrayidcontact) > 0) {
if (is_array($arrayidcontact) && count($arrayidcontact) > 0) {
$usecontact = true;
$result = $object->fetch_contact($arrayidcontact[0]);
}