]> git.mjollnir.org Git - moodle.git/commitdiff
Make sure it's THIS course that the student is currently enrolled in
authormoodler <moodler>
Sun, 17 Aug 2003 01:49:15 +0000 (01:49 +0000)
committermoodler <moodler>
Sun, 17 Aug 2003 01:49:15 +0000 (01:49 +0000)
lib/datalib.php

index 2033dab1f1b122c8f54abcf997958ca8c707bed2..89c971aa83febd031edc9098835620852e9ea492 100644 (file)
@@ -908,6 +908,7 @@ function get_recent_enrolments($courseid, $timestart) {
                               AND l.action = 'enrol'
                               AND l.info = u.id
                               AND u.id = s.userid
+                              AND s.course = '$courseid'
                               GROUP BY l.info
                               ORDER BY l.time ASC");
 }