diff --git a/htdocs/categories/edit.php b/htdocs/categories/edit.php index ab089ffdeed..28272a38a2b 100644 --- a/htdocs/categories/edit.php +++ b/htdocs/categories/edit.php @@ -38,10 +38,10 @@ $html = new Form($db); if ($_POST["action"] == 'update' && $user->rights->categorie->creer) { - $categorie->label = stripslashes($_POST["nom"]); - $categorie->description = stripslashes($_POST["description"]); + $categorie->label = $_POST["nom"]; + $categorie->description = $_POST["description"]; if($_POST['catMere'] != "-1") - $categorie->id_mere = stripslashes($_POST['catMere']); + $categorie->id_mere = $_POST['catMere']; if (!$categorie->label || !$categorie->description) @@ -72,9 +72,9 @@ print '
| ';
-
- if ($_error == 3)
- {
- print ' '.$langs->trans("ImpossibleAddCat").' '.$categorie->label.' '; - } - else - { - print ''.$langs->trans("TheCategorie").' '.$categorie->label.' '.$langs->trans("WasAddedSuccessfully").' '; - if ($_error == 2) - { - print ''.$langs->trans("TheCategorie").' '.$mere->label.' ('.$res.'). '; - } - } + print ''.$langs->trans("TheCategorie").' '.$categorie->label.' '.$langs->trans("WasAddedSuccessfully").' '; print ' |