Fix for bug 4031 -- fix typo

This commit is contained in:
martinlanghoff
2005-09-07 23:23:08 +00:00
parent fce45181d7
commit 68dfdae36e
+1 -1
View File
@@ -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('user_students', 'userid', $user->id, 'courseid', $courseid, 'enrol', 'database')) {
if (get_record('user_students', 'userid', $user->id, 'course', $courseid, 'enrol', 'database')) {
unenrol_student($user->id, $courseid); /// Unenrol the student
unset($user->student[$course->id]); /// Remove from old list
} else {