Skip to content
Permalink
Browse files

Merged from MOODLE_15_STABLE - Fix for bug 4031 -- fix typo

  • Loading branch information...
martinlanghoff
martinlanghoff committed Sep 7, 2005
1 parent a96354b commit 8456874ab396bf36163a4e1e3bc8c9c10d0135f6
Showing with 1 addition and 1 deletion.
  1. +1 −1 enrol/database/enrol.php
@@ -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 {

0 comments on commit 8456874

Please sign in to comment.
You can’t perform that action at this time.