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");