Not visible courses don't cause unenrolment under LDAP anymore. Credit goes to Iñaki Arenaza. MDL-14097 ; merged from 19_STABLE

This commit is contained in:
stronk7 2008-03-30 00:45:58 +00:00
parent 6558e9ab2d
commit d936580e1f

View File

@ -75,12 +75,6 @@ function setup_enrolments(&$user) {
} else {
error_log("[ENROL_LDAP] User $user->username enrolled to a nonexistant course $course_ext_id \n");
}
} else { // the course object exists before we call...
if ($course_obj->visible==0) {
// non-visible courses don't show up in the enrolled
// array, so we should skip them --
continue;
}
}
// deal with enrolment in the moodle db