diff options
author | alecpl <alec@alec.pl> | 2012-03-13 08:54:05 +0000 |
---|---|---|
committer | alecpl <alec@alec.pl> | 2012-03-13 08:54:05 +0000 |
commit | 8d67c7b8bce37fca61dcd00d2ed514f504f36e13 (patch) | |
tree | 4dc54855be4abf2e9b3f46d1dff26cbba0f3825a | |
parent | 4be86f3a3779ef86be30e8451750130569d2cacd (diff) |
- Fix counting messages search results
-rw-r--r-- | program/include/rcube_imap.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/program/include/rcube_imap.php b/program/include/rcube_imap.php index 2be225636..7038d24b9 100644 --- a/program/include/rcube_imap.php +++ b/program/include/rcube_imap.php @@ -566,8 +566,8 @@ class rcube_imap extends rcube_storage { $mode = strtoupper($mode); - // count search set - if ($this->search_string && $folder == $this->folder && ($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 && $folder == $this->folder && ($mode == 'ALL' || $mode == 'THREADS')) { if ($mode == 'ALL') { return $this->search_set->count_messages(); } |