Merge pull request #5339 from dsoares/patch-1

Avoid PHP fatal error with LDAP object
pull/5350/head
Aleksander Machniak 8 years ago committed by GitHub
commit cbba1586ee

@ -932,7 +932,7 @@ class rcube_ldap extends rcube_addressbook
$result = $this->ldap->search($base_dn, $prop['filter'], $prop['scope'], $attrs, $prop, $count);
// we have a search result resource, get all entries
if (!$count && $result && $result->count() > 0) {
if (!$count && $result) {
$result = $result->entries();
unset($result['count']);
}

Loading…
Cancel
Save