summaryrefslogtreecommitdiff
path: root/program/include
diff options
context:
space:
mode:
authorthomascube <thomas@roundcube.net>2012-04-17 23:17:16 +0000
committerthomascube <thomas@roundcube.net>2012-04-17 23:17:16 +0000
commit6ab9e8a6c8474063ea70c727bb3fe107f1a864dc (patch)
tree512972cc20499894290b5f264275f8b782298d72 /program/include
parent963a10bf8198ff21a26e6dd3d29a198587916858 (diff)
Respect force flag when counting messages
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 3fc779b88..2e1e3ede5 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, assume search set is always up-to-date (don't check $force flag)
- if ($this->search_string && $folder == $this->folder && ($mode == 'ALL' || $mode == 'THREADS')) {
+ // count search set
+ if ($this->search_string && $folder == $this->folder && ($mode == 'ALL' || $mode == 'THREADS') && !$force) {
if ($mode == 'ALL') {
return $this->search_set->count_messages();
}