summaryrefslogtreecommitdiff
path: root/program/include/rcube_imap.php
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2009-01-23 19:09:57 +0000
committeralecpl <alec@alec.pl>2009-01-23 19:09:57 +0000
commit0d57de907f0e2a64535097e573f863619373d5ce (patch)
tree1a306a3403b72b579799bbc32bc2852159992eac /program/include/rcube_imap.php
parent5282aa65e28ad0bb2a869f45700287be116d817a (diff)
- Fix large search results on server without SORT capability (#1485668)
Diffstat (limited to 'program/include/rcube_imap.php')
-rw-r--r--program/include/rcube_imap.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/program/include/rcube_imap.php b/program/include/rcube_imap.php
index f8737e3a2..287c3ee65 100644
--- a/program/include/rcube_imap.php
+++ b/program/include/rcube_imap.php
@@ -687,7 +687,7 @@ class rcube_imap
// use memory less expensive (and quick) method for big result set
$a_index = $this->message_index($mailbox, $this->sort_field, $this->sort_order);
// get messages uids for one page...
- $msgs = array_slice(array_keys($a_index), $start_msg, min($cnt-$start_msg, $this->page_size));
+ $msgs = array_slice($a_index, $start_msg, min($cnt-$start_msg, $this->page_size));
// ...and fetch headers
$this->_fetch_headers($mailbox, join(',', $msgs), $a_msg_headers, NULL);