Permalink
Browse files

enrol/db - bug 3912 - Re-add the enrolment to $user->student[] - shou…

…ld fix things for good.
  • Loading branch information...
1 parent 0aff0bf commit dc2a68b4d73f2c7778291227d692ef0f7f86eced martinlanghoff committed Sep 7, 2005
Showing with 2 additions and 0 deletions.
  1. +2 −0 enrol/database/enrol.php
View
@@ -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;
}
}
}

0 comments on commit dc2a68b

Please sign in to comment.