Fix: Failed to create
This commit is contained in:
parent
57ef5a4082
commit
7553e0473e
@ -136,8 +136,10 @@ class Categorie
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
$sql = "INSERT INTO ".MAIN_DB_PREFIX."categorie (label, description, fk_soc, visible, type) ";
|
$sql = "INSERT INTO ".MAIN_DB_PREFIX."categorie (label, description, fk_soc, visible, type) ";
|
||||||
$sql .= "VALUES ('".addslashes($this->label)."', '".addslashes($this->description)."',".$this->socid.",'".$this->visible."',".$this->type.")";
|
$sql.= "VALUES ('".addslashes($this->label)."', '".addslashes($this->description)."',";
|
||||||
|
$sql.= ($this->socid?$this->socid:"null").",";
|
||||||
|
$sql.= "'".$this->visible."',".$this->type.")";
|
||||||
|
|
||||||
|
|
||||||
$res = $this->db->query ($sql);
|
$res = $this->db->query ($sql);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user