From a8d90bd175b9d624c8c1820c26e04b7a6f8a3721 Mon Sep 17 00:00:00 2001 From: alecpl Date: Tue, 13 Mar 2012 08:59:07 +0000 Subject: - Fix counting of messages search results (on refresh when search filter is in use) --- program/include/rcube_imap.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'program/include') 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 -- cgit v1.2.3