From 64e2bb734f5690c06cf434a0f2c229d21cba80aa Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Tue, 6 May 2003 15:13:46 +0000 Subject: [PATCH] fixed sorting if register_globals was off --- lam/templates/lists/listgroups.php | 3 +++ lam/templates/lists/listhosts.php | 3 +++ 2 files changed, 6 insertions(+) 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