Fix: Plantage si tva non dfinie

This commit is contained in:
Laurent Destailleur 2006-05-09 19:03:17 +00:00
parent d59da33ed9
commit b287c2f82a

View File

@ -215,7 +215,7 @@ class Product
$sql = "UPDATE ".MAIN_DB_PREFIX."product "; $sql = "UPDATE ".MAIN_DB_PREFIX."product ";
$sql .= " SET label = '" . addslashes($this->libelle) ."'"; $sql .= " SET label = '" . addslashes($this->libelle) ."'";
if ($this->ref) $sql .= ",ref = '" . $this->ref ."'"; if ($this->ref) $sql .= ",ref = '" . $this->ref ."'";
$sql .= ",tva_tx = " . $this->tva_tx ; $sql .= ",tva_tx = '" . $this->tva_tx."'";
$sql .= ",envente = " . $this->status; $sql .= ",envente = " . $this->status;
$sql .= ",seuil_stock_alerte = " . $this->seuil_stock_alerte; $sql .= ",seuil_stock_alerte = " . $this->seuil_stock_alerte;
$sql .= ",description = '" . addslashes($this->description) ."'"; $sql .= ",description = '" . addslashes($this->description) ."'";