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; }