From 9d0cd148a890a85956412e88fcfb62a2baf79dd5 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Fri, 25 Sep 2015 11:47:24 +0200 Subject: [PATCH] Fix duplicate log --- htdocs/categories/class/categorie.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/categories/class/categorie.class.php b/htdocs/categories/class/categorie.class.php index e79abfd9d3d..66db4144f91 100644 --- a/htdocs/categories/class/categorie.class.php +++ b/htdocs/categories/class/categorie.class.php @@ -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) {