Make sure that the scope config variable is set.

This commit is contained in:
Andrew Ruthven 2008-02-13 11:01:50 +13:00 committed by Andrew Ruthven
parent c4200203ca
commit 7147b5a054

View File

@ -80,7 +80,8 @@ class ldapDrivers
}
}
//Set the search scope to be used
//Set the search scope to be used, default to subtree.
if (!isset($config['scope'])) $config['scope'] = 'subtree';
switch (strtolower($config['scope'])) {
case "base":
$this->ldap_query_one = ldap_read;