summaryrefslogtreecommitdiff
path: root/roundcubemail/program
diff options
context:
space:
mode:
authoralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2012-01-13 11:51:20 +0000
committeralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2012-01-13 11:51:20 +0000
commit279277f9f31837ad520b6ddfb4f2cdae703e5860 (patch)
treeebe1e94922c33ae20ea8acc43e3f06d19ebda69f /roundcubemail/program
parent98263b317367b45ae491aa1836e0b2dca49f97bb (diff)
- Remove redundant ldap_count_entries() call
git-svn-id: https://svn.roundcube.net/trunk@5772 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program')
-rw-r--r--roundcubemail/program/include/rcube_ldap.php6
1 files changed, 2 insertions, 4 deletions
diff --git a/roundcubemail/program/include/rcube_ldap.php b/roundcubemail/program/include/rcube_ldap.php
index c11bbb5e2..2497138eb 100644
--- a/roundcubemail/program/include/rcube_ldap.php
+++ b/roundcubemail/program/include/rcube_ldap.php
@@ -870,10 +870,8 @@ class rcube_ldap extends rcube_addressbook
// The filter is not set, set it.
$this->filter = $this->prop['filter'];
}
- $this->_exec_search(true);
- if ($this->ldap_result) {
- $count = ldap_count_entries($this->conn, $this->ldap_result);
- }
+
+ $count = (int) $this->_exec_search(true);
}
return new rcube_result_set($count, ($this->list_page-1) * $this->page_size);