Ajout addslashe sur ajout libelle
This commit is contained in:
parent
ef35fb8407
commit
a10968cddc
@ -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").",";
|
||||
|
||||
Loading…
Reference in New Issue
Block a user