diff --git a/lam/templates/lists/listgroups.php b/lam/templates/lists/listgroups.php index 13bfa034..6e9eb22c 100644 --- a/lam/templates/lists/listgroups.php +++ b/lam/templates/lists/listgroups.php @@ -30,6 +30,9 @@ include_once ("../../lib/status.inc"); session_save_path("../../sess"); @session_start(); +// get sorting column when register_globals is off +$list = $_GET['list']; + // check if button was pressed and if we have to add/delete a group if ($_POST['new_group'] || $_POST['del_group']){ // add new group diff --git a/lam/templates/lists/listhosts.php b/lam/templates/lists/listhosts.php index 2ed9b6de..34bc2605 100644 --- a/lam/templates/lists/listhosts.php +++ b/lam/templates/lists/listhosts.php @@ -30,6 +30,9 @@ include_once ("../../lib/status.inc"); session_save_path("../../sess"); @session_start(); +// get sorting column when register_globals is off +$list = $_GET['list']; + // check if button was pressed and if we have to add/delete a host if ($_POST['new_host'] || $_POST['del_host']){ // add new host