diff --git a/lam/templates/lists/listgroups.php b/lam/templates/lists/listgroups.php index 988b4d7a..b8e4849b 100644 --- a/lam/templates/lists/listgroups.php +++ b/lam/templates/lists/listgroups.php @@ -33,7 +33,7 @@ session_save_path("../../sess"); setlanguage(); // get sorting column when register_globals is off -$list = $_GET['list']; +$sort = $_GET['sort']; // copy HTTP-GET variables to HTTP-POST $_POST = $_POST + $_GET; @@ -121,7 +121,7 @@ if ($sr) { if ($info["count"] == 0) StatusMessage("WARN", "", _("No Groups found!")); // delete first array entry which is "count" array_shift($info); - // sort rows by sort column ($list) + // sort rows by sort column ($sort) usort($info, "cmp_array"); } else StatusMessage("ERROR", _("LDAP Search failed! Please check your preferences."), _("No Groups found!")); @@ -136,12 +136,12 @@ echo "
"; // table header for ($k = 0; $k < sizeof($desc_array); $k++) { - if (strtolower($attr_array[$k]) == $list) { + if (strtolower($attr_array[$k]) == $sort) { echo " | " . $desc_array[$k] . " | "; + "sort=" . strtolower($attr_array[$k]) . $searchfilter . "\">" . $desc_array[$k] . ""; } else echo "" . $desc_array[$k] . " | "; + "sort=" . strtolower($attr_array[$k]) . $searchfilter . "\">" . $desc_array[$k] . ""; } echo "
---|