alecpl
2012-01-13 1224463db79a3a0eacbdf123ad01d5b1d2ca9098
- Remove redundant ldap_count_entries() call


1 files modified
6 ■■■■■ changed files
program/include/rcube_ldap.php 6 ●●●●● patch | view | raw | blame | history
program/include/rcube_ldap.php
@@ -870,10 +870,8 @@
                // 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);