summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2012-11-28 23:43:31 (GMT)
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2012-11-28 23:43:31 (GMT)
commit4b665556b7dc6d41696f994db63a77052fba2bfd (patch)
treebd900fdc1f3b8c483fe2363c6847b5440c7dfdfa
parent75c369c387b63af733c43871cac5619cf4f8068c (diff)
downloadkolab-wap-4b665556b7dc6d41696f994db63a77052fba2bfd.tar.gz
Correct handling the return value of Auth::LDAP::domain_info(), that can also be false
-rw-r--r--lib/Auth/LDAP.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Auth/LDAP.php b/lib/Auth/LDAP.php
index 1f94610..0371834 100644
--- a/lib/Auth/LDAP.php
+++ b/lib/Auth/LDAP.php
@@ -139,7 +139,8 @@ class LDAP extends Net_LDAP3 {
{
// Apply some routines for access control to this function here.
if (!empty($parent_domain)) {
- if ($this->domain_info($parent_domain)->count() < 1) {
+ $domain_info = $this->domain_info($parent_domain);
+ if ($domain_info === false) {
$this->_domain_add_new($parent_domain, $prepopulate);
}