]> git.mjollnir.org Git - moodle.git/commitdiff
Fixed bogus warnings about empty LDAP contexts.
authormartinlanghoff <martinlanghoff>
Mon, 17 Jan 2005 21:07:00 +0000 (21:07 +0000)
committermartinlanghoff <martinlanghoff>
Mon, 17 Jan 2005 21:07:00 +0000 (21:07 +0000)
enrol/ldap/enrol.php

index 85519d07fb071470d731ddfc30b480e84d1adc07..d626b63807c73e70dc6b880b72e5ddeca1969fe8 100755 (executable)
@@ -508,6 +508,9 @@ function find_ext_enrolments ($ldap_connection, $memberuid, $type){
 
     foreach ($ldap_contexts as $context) {
         $context == trim($context);
+        if (empty($context)) {
+            continue; // next;
+        }
         
         if ($CFG->enrol_ldap_search_sub){
             //use ldap_search to find first user from subtree