enrol/db - bug 3912 - Re-add the enrolment to $user->student[] - should fix things for good.

This commit is contained in:
martinlanghoff
2005-09-07 06:36:32 +00:00
parent 0aff0bf622
commit dc2a68b4d7
+2
View File
@@ -74,6 +74,8 @@ function get_student_courses(&$user) {
if (get_record_select('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 {
$newstudent[$courseid] = true;
}
}
}