diff --git a/htdocs/categories/index.php b/htdocs/categories/index.php index 529518183d9..60c6cc4be65 100644 --- a/htdocs/categories/index.php +++ b/htdocs/categories/index.php @@ -31,7 +31,7 @@ require("../main.inc.php"); require_once(DOL_DOCUMENT_ROOT."/categories/class/categorie.class.php"); require_once(DOL_DOCUMENT_ROOT."/lib/treeview.lib.php"); -$type=isset($_GET['type'])?$_GET['type']:(isset($_POST['type'])?$_POST['type']:0); +$type=(GETPOST('type') ? GETPOST('type') : 0); if (!$user->rights->categorie->lire) accessforbidden(); @@ -259,13 +259,13 @@ foreach($fulltree as $key => $val) // Show link print '