From 050562a02a7b02785d2125f4f64b8a69e55fe10d Mon Sep 17 00:00:00 2001 From: Andre Cianfarani Date: Tue, 21 Feb 2006 19:00:51 +0000 Subject: [PATCH] fucking regis bugfix --- htdocs/categories/categorie.class.php | 10 +++++----- htdocs/categories/fiche.php | 10 +++++----- 2 files changed, 10 insertions(+), 10 deletions(-) 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 '