Permalink
Browse files

Not visible courses don't cause unenrolment under LDAP anymore. Credi…

…t goes to Iñaki Arenaza. MDL-14097 ; backported from HEAD
  • Loading branch information...
stronk7
stronk7 committed Mar 30, 2008
1 parent 31df961 commit 9922fbf9d6e816f3ba7e162e9bc8986274051361
Showing with 0 additions and 6 deletions.
  1. +0 −6 enrol/ldap/enrol.php
View
@@ -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

0 comments on commit 9922fbf

Please sign in to comment.