summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2014-08-27 06:24:45 (GMT)
committerAleksander Machniak <alec@alec.pl>2014-08-27 06:24:45 (GMT)
commit864858dd73f9c6de1a2607b219fabe113133a605 (patch)
tree68bdbfd36df630a4b7ab27a4218c22f6d8ae73bd
parenta3b96ac6df78d74fe95394e8b33da5aab784d52e (diff)
downloadNet_LDAP3-864858dd73f9c6de1a2607b219fabe113133a605.tar.gz
Fix PHP Fatal error: Call to a member function entries() on a non-object (#3518)
-rw-r--r--lib/Net/LDAP3.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/Net/LDAP3.php b/lib/Net/LDAP3.php
index 4d2082a..86c6310 100644
--- a/lib/Net/LDAP3.php
+++ b/lib/Net/LDAP3.php
@@ -992,7 +992,9 @@ class Net_LDAP3
$result = $ldap->search($root_dn, '(objectclass=nsds5replicationagreement)', 'sub', array('nsds5replicahost'));
if (!$result) {
- $this->_debug("No replicas configured");
+ $this->_debug("No replicas configured on $replica_host");
+ $ldap->close();
+ continue;
}
foreach ($result->entries(true) as $dn => $attrs) {