Merge branch 'MDL-49311-28' of git://github.com/lameze/moodle into MOODLE_28_STABLE

This commit is contained in:
Andrew Nicols
2015-04-24 11:40:37 +08:00
+2 -2
View File
@@ -381,8 +381,8 @@ $table->define_columns($tablecolumns);
$table->define_headers($tableheaders);
$table->define_baseurl($baseurl->out());
if (!isset($hiddenfields['lastcourseaccess'])) {
$table->sortable(true, 'lastcourseaccess', SORT_DESC);
if (!isset($hiddenfields['lastaccess'])) {
$table->sortable(true, 'lastaccess', SORT_DESC);
} else {
$table->sortable(true, 'firstname', SORT_ASC);
}