summaryrefslogtreecommitdiff
path: root/roundcubemail/program/steps
diff options
context:
space:
mode:
authoralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2009-09-18 10:15:17 +0000
committeralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2009-09-18 10:15:17 +0000
commitf40943b72e79279f47c49c46d790eeead93a98f2 (patch)
tree6b0b739211521dcdca2f6cc52e1382255b2ee6aa /roundcubemail/program/steps
parentf73be894afa7ef35dd9219af847e55196b783a33 (diff)
- fix for last commit in getunread action
git-svn-id: https://svn.roundcube.net/trunk@2966 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/steps')
-rw-r--r--roundcubemail/program/steps/mail/getunread.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/roundcubemail/program/steps/mail/getunread.inc b/roundcubemail/program/steps/mail/getunread.inc
index bee2073e3..431ba8a90 100644
--- a/roundcubemail/program/steps/mail/getunread.inc
+++ b/roundcubemail/program/steps/mail/getunread.inc
@@ -26,11 +26,11 @@ if (!empty($a_folders))
$inbox = ($IMAP->get_mailbox_name() == 'INBOX');
foreach ($a_folders as $mbox_row) {
$unseen = $IMAP->messagecount($mbox_row, 'UNSEEN', !isset($_SESSION['unseen_count'][$mbox_row]));
- $_SESSION['unseen_count'][$mbox_row] = $unseen;
- if ($unseen) {
+ if ($unseen || !isset($_SESSION['unseen_count'][$mbox_row])) {
$OUTPUT->command('set_unread_count', $mbox_row, $unseen, $inbox && $mbox_row == 'INBOX');
}
+ $_SESSION['unseen_count'][$mbox_row] = $unseen;
}
}