From d310af3f56886ad481fc26c575dd5fb54351cccd Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Mon, 20 Feb 2006 18:08:13 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20possibilit=E9=20de=20cr=E9er=20des=20sou?= =?UTF-8?q?s=20cat=E9gories=20ayant=20le=20m=EAme=20nom?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/categories/create.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/htdocs/categories/create.php b/htdocs/categories/create.php index 34295a9277e..2d4e2428b97 100644 --- a/htdocs/categories/create.php +++ b/htdocs/categories/create.php @@ -139,10 +139,8 @@ print ''; echo "

".$langs->trans ("ErrForgotField")." \"".$langs->trans ("Label")."\"

"; $OK = false; } - else if ($c->already_exists($_POST["nom"]) + else if ($c->already_exists($_POST["nom"])) // on regarde si le nom n'existe pas déjà en tant que catégorie ou sous-catégorie { - // on regarde si le champ nom n'est pas déjà dans la table catégorie (rappel: un nom est unique dans la table catégorie - // nb a déjà été renseigné, il contient le nombre de catégories echo "

".$langs->trans ("ErrCatAlreadyExists")."

"; $OK = false; }