From 6ebaf0edcb358a1c2b7ea865cc36a7eca8a833fa Mon Sep 17 00:00:00 2001 From: martinlanghoff Date: Mon, 17 Jan 2005 21:07:00 +0000 Subject: [PATCH] Fixed bogus warnings about empty LDAP contexts. --- enrol/ldap/enrol.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/enrol/ldap/enrol.php b/enrol/ldap/enrol.php index 85519d07fb..d626b63807 100755 --- a/enrol/ldap/enrol.php +++ b/enrol/ldap/enrol.php @@ -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 -- 2.39.5