From cb35314287bbbae88d1743d8fa542bd26bda1f08 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sat, 10 Sep 2011 23:25:54 +0000 Subject: [PATCH] Fix: pgsql compatibility --- htdocs/categories/class/categorie.class.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/htdocs/categories/class/categorie.class.php b/htdocs/categories/class/categorie.class.php index 7173ad4f122..007542f2a2a 100644 --- a/htdocs/categories/class/categorie.class.php +++ b/htdocs/categories/class/categorie.class.php @@ -215,8 +215,7 @@ class Categorie $this->label=trim($this->label); $this->description=trim($this->description); $this->parentId = ($this->id_mere) != "" ? intval($this->id_mere) : 0; - $this->visible = ($this->visible) != "" ? intval($this->visible) : 0; - + if ($this->already_exists()) { $this->error=$langs->trans("ImpossibleUpdateCat");