Correction bug #32365 Warning: Attempt to read property datepaye on string

This commit is contained in:
Charlie Root 2024-12-13 23:35:47 +01:00
parent 8673588274
commit 912206d99b

View File

@ -139,7 +139,7 @@ class mod_supplier_payment_brodator extends ModeleNumRefSupplierPayments
return 0;
}
$numFinal = get_next_value($db, $mask, 'paiementfourn', 'ref', '', $objsoc, $object->datepaye);
$numFinal = get_next_value($db, $mask, 'paiementfourn', 'ref', '', $objsoc, is_object($object) ?$object->datepaye :'');
return $numFinal;
}