mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
Fix for bug 1226
This commit is contained in:
parent
e441aac877
commit
149dbaf1b3
1 changed files with 1 additions and 2 deletions
|
@ -1095,7 +1095,7 @@ function get_recent_enrolments($courseid, $timestart) {
|
||||||
|
|
||||||
global $CFG;
|
global $CFG;
|
||||||
|
|
||||||
return get_records_sql("SELECT u.id, u.firstname, u.lastname
|
return get_records_sql("SELECT DISTINCT u.id, u.firstname, u.lastname
|
||||||
FROM {$CFG->prefix}user u,
|
FROM {$CFG->prefix}user u,
|
||||||
{$CFG->prefix}user_students s,
|
{$CFG->prefix}user_students s,
|
||||||
{$CFG->prefix}log l
|
{$CFG->prefix}log l
|
||||||
|
@ -1106,7 +1106,6 @@ function get_recent_enrolments($courseid, $timestart) {
|
||||||
AND l.info = u.id
|
AND l.info = u.id
|
||||||
AND u.id = s.userid
|
AND u.id = s.userid
|
||||||
AND s.course = '$courseid'
|
AND s.course = '$courseid'
|
||||||
GROUP BY l.info
|
|
||||||
ORDER BY l.time ASC");
|
ORDER BY l.time ASC");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue