diff --git a/htdocs/product.class.php b/htdocs/product.class.php index edd946a0508..b22c7fffca9 100644 --- a/htdocs/product.class.php +++ b/htdocs/product.class.php @@ -399,7 +399,7 @@ class Product extends CommonObject $sql = "UPDATE ".MAIN_DB_PREFIX."product "; $sql .= " SET label = '" . addslashes($this->libelle) ."'"; - if ($this->ref) $sql .= ",ref = '" . $this->ref ."'"; + $sql .= ",ref = '" . $this->ref ."'"; $sql .= ",tva_tx = " . $this->tva_tx; $sql .= ",envente = " . $this->status; $sql .= ",finished = " . ($this->finished<0 ? "null" : $this->finished);