From d936580e1fb34c3264f735577da3ddd73ceea3e4 Mon Sep 17 00:00:00 2001 From: stronk7 Date: Sun, 30 Mar 2008 00:45:58 +0000 Subject: [PATCH] =?utf8?q?Not=20visible=20courses=20don't=20cause=20unenro?= =?utf8?q?lment=20under=20LDAP=20anymore.=20Credit=20goes=20to=20I=C3=B1ak?= =?utf8?q?i=20Arenaza.=20MDL-14097=20;=20merged=20from=2019=5FSTABLE?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- enrol/ldap/enrol.php | 6 ------ 1 file changed, 6 deletions(-) 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 -- 2.39.5