summaryrefslogtreecommitdiff
path: root/program/include
diff options
context:
space:
mode:
Diffstat (limited to 'program/include')
-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 7e2221884..9b507028c 100644
--- a/program/include/rcube_imap.php
+++ b/program/include/rcube_imap.php
@@ -674,7 +674,7 @@ class rcube_imap
}
else { // SEARCH searching result, need sorting
$cnt = count($msgs);
- if ($cnt > 300) { // experimantal best result
+ if ($cnt > 300 && $cnt > $this->page_size) { // experimantal value for best result
// 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...