From 6e987d93f7c7387b9fcf9881f7bf6c1c0b285ec1 Mon Sep 17 00:00:00 2001 From: Andre Cianfarani Date: Tue, 14 Mar 2006 07:26:06 +0000 Subject: [PATCH] debug interdiction creer cate au meme emplacement --- htdocs/categories/categorie.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/categories/categorie.class.php b/htdocs/categories/categorie.class.php index 0341b480a07..8a6eac088ec 100644 --- a/htdocs/categories/categorie.class.php +++ b/htdocs/categories/categorie.class.php @@ -101,7 +101,7 @@ class Categorie */ function create() { - if ($this->already_exists ($this->label)) + if ($this->already_exists ()) { $this->error="Cette catégorie existe déjà au même endroit"; return -1; @@ -632,7 +632,7 @@ function get_arbo_each_cate() $sql.= " FROM ".MAIN_DB_PREFIX."categorie as c, ".MAIN_DB_PREFIX."categorie_association as ca"; $sql.= " WHERE c.label = '".$this -> label."'"; $sql.= " AND c.rowid = ca.fk_categorie_fille"; - $sql.= " AND ca.fk_categorie_mere = '".$this -> catmere."'"; + $sql.= " AND ca.fk_categorie_mere = '".$this -> id_mere."'"; $res = $this->db->query ($sql); $res = $this->db->fetch_array ($res);