Fixed bogus warnings about empty LDAP contexts.

This commit is contained in:
martinlanghoff
2005-01-17 21:07:00 +00:00
parent 35de9e2487
commit 6ebaf0edcb
+3
View File
@@ -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