fix php8 warnings

This commit is contained in:
Frédéric France
2022-08-31 21:55:55 +02:00
parent ece2f5553a
commit fc01cc66cd
90 changed files with 243 additions and 243 deletions

View File

@@ -51,7 +51,7 @@ if ($id > 0 || !empty($ref)) {
}
// Linked documents
if ($typeobject == 'commande' && $object->$typeobject->id && !empty($conf->commande->enabled)) {
if ($typeobject == 'commande' && $object->$typeobject->id && isModEnabled('commande')) {
$objectsrc = new Commande($db);
$objectsrc->fetch($object->$typeobject->id);
}