Skip to content
Snippets Groups Projects
Commit 7553e047 authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

Fix: Failed to create

parent 57ef5a40
Branches master
No related tags found
No related merge requests found
...@@ -137,7 +137,9 @@ class Categorie ...@@ -137,7 +137,9 @@ class Categorie
} }
$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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment