- Remove redundant ldap_count_entries() call

pull/1/head
alecpl 13 years ago
parent 4391a7809e
commit 1224463db7

@ -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);

Loading…
Cancel
Save