From ac6b87c4a27c3ca7491af7f159778f333050519e Mon Sep 17 00:00:00 2001 From: thomascube Date: Mon, 27 Mar 2006 19:07:13 +0000 Subject: Improved search function --- program/include/rcube_imap.inc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'program/include/rcube_imap.inc') diff --git a/program/include/rcube_imap.inc b/program/include/rcube_imap.inc index ebca1ddaa..f515b446d 100644 --- a/program/include/rcube_imap.inc +++ b/program/include/rcube_imap.inc @@ -629,8 +629,6 @@ class rcube_imap $max = count($msgs); $start_msg = ($this->list_page-1) * $this->page_size; - - list($begin, $end) = $this->_get_message_range($max, $page); // fetch reuested headers from server $a_msg_headers = array(); @@ -644,7 +642,7 @@ class rcube_imap $a_msg_headers = iil_SortHeaders($a_msg_headers, $this->sort_field, $this->sort_order); // only return the requested part of the set - return array_slice(array_values($a_msg_headers), $begin, min($max, $this->page_size)); + return array_slice(array_values($a_msg_headers), $start_msg, min($max-$start_msg, $this->page_size)); } -- cgit v1.2.3