Permalink
Browse files

Fix for bug 4031 -- stupid mistake of using get_record_select() when …

…I mean get_record() - see the bug entry for more details
  • Loading branch information...
1 parent 4e9cc48 commit fce45181d7136a4fcdd2c3927990323f92d6f0f9 martinlanghoff committed Sep 7, 2005
Showing with 1 addition and 1 deletion.
  1. +1 −1 enrol/database/enrol.php
View
@@ -71,7 +71,7 @@ function get_student_courses(&$user) {
foreach ($user->student as $courseid => $value) {
// unenrol only if it's a record pulled from external db
- if (get_record_select('user_students', 'userid', $user->id, 'courseid', $courseid, 'enrol', 'database')) {
+ if (get_record('user_students', 'userid', $user->id, 'courseid', $courseid, 'enrol', 'database')) {
unenrol_student($user->id, $courseid); /// Unenrol the student
unset($user->student[$course->id]); /// Remove from old list
} else {

0 comments on commit fce4518

Please sign in to comment.