summaryrefslogtreecommitdiff
path: root/program/include
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2012-03-13 08:59:07 +0000
committeralecpl <alec@alec.pl>2012-03-13 08:59:07 +0000
commita8d90bd175b9d624c8c1820c26e04b7a6f8a3721 (patch)
tree5dc030f64c2a14c95ab8d6e8adf021df56d55518 /program/include
parent315993ef0f7ca49205d1535a293bc0973bf68cda (diff)
- Fix counting of messages search results (on refresh when search filter is in use)
Diffstat (limited to 'program/include')
-rw-r--r--program/include/rcube_imap.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/program/include/rcube_imap.php b/program/include/rcube_imap.php
index a536e9235..ed84845c4 100644
--- a/program/include/rcube_imap.php
+++ b/program/include/rcube_imap.php
@@ -687,8 +687,8 @@ class rcube_imap
{
$mode = strtoupper($mode);
- // count search set
- if ($this->search_string && $mailbox == $this->mailbox && ($mode == 'ALL' || $mode == 'THREADS') && !$force) {
+ // count search set, assume search set is always up-to-date (don't check $force flag)
+ if ($this->search_string && $mailbox == $this->mailbox && ($mode == 'ALL' || $mode == 'THREADS')) {
if ($this->search_threads)
return $mode == 'ALL' ? count((array)$this->search_set['depth']) : count((array)$this->search_set['tree']);
else