]> git.mjollnir.org Git - moodle.git/commitdiff
Fix for bug 1226
authormoodler <moodler>
Fri, 9 Apr 2004 02:24:02 +0000 (02:24 +0000)
committermoodler <moodler>
Fri, 9 Apr 2004 02:24:02 +0000 (02:24 +0000)
lib/datalib.php

index 3a653efea016e521b8175d515232e371f9c42e28..62bdb61ac951bad21c2c9c86c534174e44a7dad5 100644 (file)
@@ -1095,7 +1095,7 @@ function get_recent_enrolments($courseid, $timestart) {
 
     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,
                                  {$CFG->prefix}user_students s,
                                  {$CFG->prefix}log l
@@ -1106,7 +1106,6 @@ function get_recent_enrolments($courseid, $timestart) {
                               AND l.info = u.id
                               AND u.id = s.userid
                               AND s.course = '$courseid'
-                              GROUP BY l.info
                               ORDER BY l.time ASC");
 }