Fix duplicate log
This commit is contained in:
parent
dcf3c00023
commit
9d0cd148a8
@ -222,6 +222,8 @@ class Categorie extends CommonObject
|
||||
|
||||
$error=0;
|
||||
|
||||
dol_syslog(get_class($this).'::create', LOG_DEBUG);
|
||||
|
||||
// Clean parameters
|
||||
$this->label = trim($this->label);
|
||||
$this->description = trim($this->description);
|
||||
@ -239,7 +241,6 @@ class Categorie extends CommonObject
|
||||
|
||||
$this->db->begin();
|
||||
|
||||
dol_syslog(get_class($this).'::create', LOG_DEBUG);
|
||||
$sql = "INSERT INTO ".MAIN_DB_PREFIX."categorie (";
|
||||
$sql.= "fk_parent,";
|
||||
$sql.= " label,";
|
||||
@ -266,7 +267,6 @@ class Categorie extends CommonObject
|
||||
$sql.= $conf->entity;
|
||||
$sql.= ")";
|
||||
|
||||
dol_syslog(get_class($this).'::create', LOG_DEBUG);
|
||||
$res = $this->db->query($sql);
|
||||
if ($res)
|
||||
{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user