From 7147b5a0540b7e932e1d4ff398534ae35fdcb135 Mon Sep 17 00:00:00 2001 From: Andrew Ruthven Date: Wed, 13 Feb 2008 11:01:50 +1300 Subject: [PATCH] Make sure that the scope config variable is set. --- inc/drivers_ldap.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/inc/drivers_ldap.php b/inc/drivers_ldap.php index 3dd79a7d..9b084234 100644 --- a/inc/drivers_ldap.php +++ b/inc/drivers_ldap.php @@ -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;