Ajout addslashe sur ajout libelle

This commit is contained in:
Laurent Destailleur 2007-12-07 17:08:51 +00:00
parent ef35fb8407
commit a10968cddc

View File

@ -206,7 +206,7 @@ class Product extends CommonObject
$sql.= "fk_user_author, fk_product_type, price, price_ttc, price_base_type, canvas)";
$sql.= " VALUES (now(), ";
if ($this->ref) $sql.= "'".$this->ref."', ";
if ($this->libelle) $sql.= "'".$this->libelle."', ";
if ($this->libelle) $sql.= "'".addslashes($this->libelle)."', ";
$sql.= $user->id.",";
$sql.= " ".$this->type.",";
$sql.= ($price_ht?price2num($price_ht):"null").",";