diff --git a/htdocs/fourn/class/fournisseur.commande.class.php b/htdocs/fourn/class/fournisseur.commande.class.php index 02ffc77918a..72ba5be84ee 100644 --- a/htdocs/fourn/class/fournisseur.commande.class.php +++ b/htdocs/fourn/class/fournisseur.commande.class.php @@ -2084,7 +2084,7 @@ class CommandeFournisseur extends CommonOrder // Test we can delete $this->fetchObjectLinked(null, 'order_supplier'); - if (!empty($this->linkedObjects)) { + if (!empty($this->linkedObjects) && array_key_exists('reception', $this->linkedObjects)) { foreach ($this->linkedObjects['reception'] as $element) { if ($element->statut >= 0) { $this->errors[] = $langs->trans('ReceptionExist');