summaryrefslogtreecommitdiff
path: root/program
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2012-01-13 11:51:20 +0000
committeralecpl <alec@alec.pl>2012-01-13 11:51:20 +0000
commit1224463db79a3a0eacbdf123ad01d5b1d2ca9098 (patch)
tree193f7e7fd7bc4528d0a666905b46cd652e9ffb7c /program
parent4391a7809edae1b552f0720a43924212519900a9 (diff)
- Remove redundant ldap_count_entries() call
Diffstat (limited to 'program')
-rw-r--r--program/include/rcube_ldap.php6
1 files changed, 2 insertions, 4 deletions
diff --git a/program/include/rcube_ldap.php b/program/include/rcube_ldap.php
index c11bbb5e2..2497138eb 100644
--- a/program/include/rcube_ldap.php
+++ b/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);