diff --git a/htdocs/fourn/class/fournisseur.commande.class.php b/htdocs/fourn/class/fournisseur.commande.class.php index c2e9243a331..77ad3d20048 100644 --- a/htdocs/fourn/class/fournisseur.commande.class.php +++ b/htdocs/fourn/class/fournisseur.commande.class.php @@ -2005,7 +2005,7 @@ class CommandeFournisseur extends CommonOrder /** * Get list of order methods * - * @return 0 if Ok, <0 if Ko + * @return int 0 if OK, <0 if KO */ function get_methodes_commande() { @@ -2037,7 +2037,7 @@ class CommandeFournisseur extends CommonOrder } /** - * Return array of dispathed lines waiting to be approved for this order + * Return array of dispatched lines waiting to be approved for this order * * @since 8.0 Return dispatched quantity (qty). * @@ -2358,6 +2358,8 @@ class CommandeFournisseur extends CommonOrder for ($i = 0; $i < $num; $i++) { $prod = new Product($this->db); + $libelle = ''; + $ref = ''; if ($prod->fetch($comclient->lines[$i]->fk_product) > 0) { $libelle = $prod->libelle;