diff --git a/htdocs/product/stock/entrepot.class.php b/htdocs/product/stock/entrepot.class.php index 7a28de60a8b..aafcc72cd6c 100644 --- a/htdocs/product/stock/entrepot.class.php +++ b/htdocs/product/stock/entrepot.class.php @@ -179,7 +179,7 @@ class Entrepot if ($this->pays_id) { $sql = "SELECT libelle from ".MAIN_DB_PREFIX."c_pays where rowid = ".$this->pays_id; - $resql=$db->query($sql); + $resql=$this->$db->query($sql); if ($resql) { $obj = $db->fetch_object($resql);