diff --git a/htdocs/categories/categorie.class.php b/htdocs/categories/categorie.class.php index fba8ddcf7b098c03a6049c4d4df6120fed32f65e..f9ce1c0516e730eaf9903e64383ee165567b279c 100644 --- a/htdocs/categories/categorie.class.php +++ b/htdocs/categories/categorie.class.php @@ -126,6 +126,8 @@ class Categorie global $langs; $langs->load('categories'); + if ($this->socid == -1) $this->socid = 0; + if ($this->already_exists ()) { $this->error=$langs->trans("ImpossibleAddCat");