diff --git a/htdocs/categories/fiche.php b/htdocs/categories/fiche.php index 260d170c489..2be926cfecb 100644 --- a/htdocs/categories/fiche.php +++ b/htdocs/categories/fiche.php @@ -41,9 +41,9 @@ else $nbcats = 1; } -if ($_REQUEST['origin']) +if ($_GET['origin']) { - $idprodorigin = $_REQUEST['origin']; + $idprodorigin = $_GET['origin']; } llxHeader("","",$langs->trans("Categories")); diff --git a/htdocs/product/categorie.php b/htdocs/product/categorie.php index 636ff5a9cf1..a26015b4acd 100644 --- a/htdocs/product/categorie.php +++ b/htdocs/product/categorie.php @@ -203,7 +203,7 @@ if ($_GET["id"] || $_GET["ref"]) if ($user->rights->categorie->creer) { - print ''.$langs->trans("NewCat").''; + print ''.$langs->trans("NewCat").''; } print '';