diff options
author | Thomas Bruederli <thomas@roundcube.net> | 2014-01-20 11:59:57 +0100 |
---|---|---|
committer | Thomas Bruederli <thomas@roundcube.net> | 2014-01-20 11:59:57 +0100 |
commit | 9202e93b754d07c0e6312f8b51bd4092ea14961d (patch) | |
tree | bace4d73aeca8913eea0ab7a786e045e67d34536 /program/lib/Roundcube/rcube_imap.php | |
parent | 6884f3f1f7542eb1dab8bb39cab33888d3fd84c5 (diff) |
Fix slicing of returned search result headers
Diffstat (limited to 'program/lib/Roundcube/rcube_imap.php')
-rw-r--r-- | program/lib/Roundcube/rcube_imap.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/program/lib/Roundcube/rcube_imap.php b/program/lib/Roundcube/rcube_imap.php index dd0501c2d..794f25a37 100644 --- a/program/lib/Roundcube/rcube_imap.php +++ b/program/lib/Roundcube/rcube_imap.php @@ -978,7 +978,7 @@ class rcube_imap extends rcube_storage $search_set->set_message_index($a_msg_headers, $sort_field, $this->sort_order); // only return the requested part of the set - $slice_length = min($page_size, $cnt - ($to > $cnt ? $from : $to)); + $slice_length = min($page_size, $cnt - $from); $a_msg_headers = array_slice(array_values($a_msg_headers), $from, $slice_length); if ($slice) { |