diff --git a/htdocs/commande/commande.class.php b/htdocs/commande/commande.class.php index 78fd724db31..f7295f04894 100644 --- a/htdocs/commande/commande.class.php +++ b/htdocs/commande/commande.class.php @@ -557,7 +557,7 @@ class Commande extends CommonObject */ function add_product($idproduct, $qty, $remise_percent=0) { - global $conf; + global $conf, $mysoc; if (!$qty) $qty = 1;