From 299db38757265be31368869a36116c3b8242568c Mon Sep 17 00:00:00 2001 From: Regis Houssin <regis@dolibarr.fr> Date: Sat, 20 Feb 2010 10:21:53 +0000 Subject: [PATCH] Fix: uniformize code --- htdocs/product.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- GitLab