mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-01-03 23:52:24 +01:00
Fix phan
This commit is contained in:
@@ -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]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user