fix: possibilit de crer des sous catgories ayant le mme nom

This commit is contained in:
Regis Houssin
2006-02-20 18:36:10 +00:00
parent bfccefd66c
commit ca070a0efe
2 changed files with 3 additions and 3 deletions

View File

@@ -139,7 +139,7 @@ print '<tr><td valign="top" width="30%">';
echo "<p>".$langs->trans ("ErrForgotField")." \"".$langs->trans ("Label")."\"</p>";
$OK = false;
}
else if ($c->already_exists($_POST["nom"],$_POST["catsMeres"]) // on regarde si le nom n'existe pas d<>j<EFBFBD> en tant que cat<61>gorie ou sous-cat<61>gorie
else if ($c->already_exists($_POST["nom"],$_POST["catsMeres"])) // on regarde si le nom n'existe pas d<>j<EFBFBD> en tant que cat<61>gorie ou sous-cat<61>gorie
{
echo "<p>".$langs->trans ("ErrCatAlreadyExists")."</p>";
$OK = false;