From f40943b72e79279f47c49c46d790eeead93a98f2 Mon Sep 17 00:00:00 2001 From: alec Date: Fri, 18 Sep 2009 10:15:17 +0000 Subject: - fix for last commit in getunread action git-svn-id: https://svn.roundcube.net/trunk@2966 208e9e7b-5314-0410-a742-e7e81cd9613c --- roundcubemail/program/steps/mail/getunread.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'roundcubemail/program') 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; } } -- cgit v1.2.3