From: stronk7 Date: Sun, 30 Mar 2008 00:45:58 +0000 (+0000) Subject: Not visible courses don't cause unenrolment under LDAP anymore. Credit goes to Iñaki... X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=d936580e1fb34c3264f735577da3ddd73ceea3e4;p=moodle.git Not visible courses don't cause unenrolment under LDAP anymore. Credit goes to Iñaki Arenaza. MDL-14097 ; merged from 19_STABLE --- diff --git a/enrol/ldap/enrol.php b/enrol/ldap/enrol.php index 3cc812c2d4..2b11bee8ff 100755 --- a/enrol/ldap/enrol.php +++ b/enrol/ldap/enrol.php @@ -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