From 1ad4ad12acf3300ca8ec97e1e67af515546d9439 Mon Sep 17 00:00:00 2001 From: eldy Date: Sun, 11 Sep 2011 01:31:26 +0200 Subject: [PATCH] Fix: pgsql compatibility --- htdocs/categories/class/categorie.class.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/htdocs/categories/class/categorie.class.php b/htdocs/categories/class/categorie.class.php index aae4fc91ef8..ec6c4b2fe73 100644 --- a/htdocs/categories/class/categorie.class.php +++ b/htdocs/categories/class/categorie.class.php @@ -215,7 +215,8 @@ 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");