diff --git a/htdocs/categories/categorie.class.php b/htdocs/categories/categorie.class.php index c9f6016251d..f77f71e1858 100644 --- a/htdocs/categories/categorie.class.php +++ b/htdocs/categories/categorie.class.php @@ -448,12 +448,12 @@ class Categorie { $sql = "SELECT count(rowid) FROM ".MAIN_DB_PREFIX."categorie"; $res = $this->db->query ($sql); - + if ($res) - { - $res = $this->db->fetch_array (); - return $res[0]; - } + { + $res = $this->db->fetch_array (); + return $res[0]; + } else { dolibarr_print_error ($this->db); diff --git a/htdocs/categories/fiche.php b/htdocs/categories/fiche.php index a1a8e8f09fc..c3603f913da 100644 --- a/htdocs/categories/fiche.php +++ b/htdocs/categories/fiche.php @@ -67,12 +67,13 @@ if ($_GET["action"] == 'create' && $user->rights->produit->creer) } print''; print ''.$langs->trans("Description").''; - print '