Skip to content

Commit

Permalink
course/participants: fix sort order when last access is null
Browse files Browse the repository at this point in the history
  • Loading branch information
martinlanghoff committed Sep 19, 2007
1 parent aebfa15 commit f312c59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion user/index.php
Expand Up @@ -321,7 +321,7 @@
} else {
$selectrole = " ";
}
$select = 'SELECT u.id, u.username, u.firstname, u.lastname, u.email, u.city, u.country, u.picture, u.lang, u.timezone, u.emailstop, u.maildisplay, ul.timeaccess AS lastaccess, r.hidden '; // s.lastaccess
$select = 'SELECT u.id, u.username, u.firstname, u.lastname, u.email, u.city, u.country, u.picture, u.lang, u.timezone, u.emailstop, u.maildisplay, COALESCE(ul.timeaccess, 0) AS lastaccess, r.hidden '; // s.lastaccess
$select .= $course->enrolperiod?', r.timeend ':'';

$from = "FROM {$CFG->prefix}user u INNER JOIN
Expand Down

0 comments on commit f312c59

Please sign in to comment.