2
0
forked from Wavyzz/dolibarr

Some order php 8 warning

This commit is contained in:
Francis Appels
2021-06-29 16:30:36 +02:00
parent b83f57da48
commit b8f5dc74d7
2 changed files with 2 additions and 2 deletions

View File

@@ -1368,7 +1368,7 @@ class Commande extends CommonOrder
}
// Possibility to add external linked objects with hooks
$this->linked_objects[$this->origin] = $this->origin_id;
if (is_array($object->other_linked_objects) && !empty($object->other_linked_objects)) {
if (isset($object->other_linked_objects) && is_array($object->other_linked_objects) && !empty($object->other_linked_objects)) {
$this->linked_objects = array_merge($this->linked_objects, $object->other_linked_objects);
}