diff --git a/program/lib/Roundcube/rcube_ldap.php b/program/lib/Roundcube/rcube_ldap.php index f0f9e4a16..e55ffbcf7 100644 --- a/program/lib/Roundcube/rcube_ldap.php +++ b/program/lib/Roundcube/rcube_ldap.php @@ -933,7 +933,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']); }