From d0f5ddb3227f860fc142a4270addaa3bd5e70e86 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 24 Mar 2010 13:43:10 +0000 Subject: [PATCH] Fix: Postgres compatibility --- htdocs/categories/categorie.class.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/htdocs/categories/categorie.class.php b/htdocs/categories/categorie.class.php index 61f3e84c5fc..65c9fc3e503 100644 --- a/htdocs/categories/categorie.class.php +++ b/htdocs/categories/categorie.class.php @@ -127,6 +127,9 @@ class Categorie global $conf,$langs; $langs->load('categories'); + // Clean parameters + if (empty($this->visible)) $this->visible=0; + if ($this->already_exists()) { $this->error=$langs->trans("ImpossibleAddCat");