Skip to content

Commit

Permalink
Fix for Bug #3015
Browse files Browse the repository at this point in the history
  • Loading branch information
fiedorow committed Apr 25, 2005
1 parent abd7e92 commit cf9f97c
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions user/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,11 @@
function print_user_table($users, $isteacher) {
// Print one big table with abbreviated info
global $mode, $sort, $course, $dir, $CFG;

if (isset($_GET['group'])) {
$group_param = "&group=".$_GET['group'];
} else {
$group_param = "";
}
$columns = array("firstname", "lastname", "city", "country", "lastaccess");

$countries = get_list_of_countries();
Expand Down Expand Up @@ -318,7 +322,7 @@ function print_user_table($users, $isteacher) {
}
$columnicon = " <img src=\"$CFG->pixpath/t/$columnicon.gif\" alt=\"\"/>";
}
$$column = "<a href=\"index.php?id=$course->id&amp;sort=$column&amp;dir=$columndir\">".$colname["$column"]."</a>$columnicon";
$$column = "<a href=\"index.php?id=$course->id&amp;sort=$column&amp;dir=$columndir$group_param\">".$colname["$column"]."</a>$columnicon";
}

foreach ($users as $key => $user) {
Expand Down

0 comments on commit cf9f97c

Please sign in to comment.