]> git.mjollnir.org Git - moodle.git/commitdiff
Not visible courses don't cause unenrolment under LDAP anymore. Credit goes to IƱaki...
authorstronk7 <stronk7>
Sun, 30 Mar 2008 00:45:58 +0000 (00:45 +0000)
committerstronk7 <stronk7>
Sun, 30 Mar 2008 00:45:58 +0000 (00:45 +0000)
enrol/ldap/enrol.php

index 3cc812c2d46800aa286f93b9c002736216d3867c..2b11bee8ff73621d50a6274274fc24890dd910ac 100755 (executable)
@@ -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