summaryrefslogtreecommitdiff
path: root/program/lib/Roundcube/rcube_imap.php
diff options
context:
space:
mode:
Diffstat (limited to 'program/lib/Roundcube/rcube_imap.php')
-rw-r--r--program/lib/Roundcube/rcube_imap.php2
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) {