diff options
Diffstat (limited to 'program')
-rw-r--r-- | program/steps/mail/check_recent.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/program/steps/mail/check_recent.inc b/program/steps/mail/check_recent.inc index 438e97bdb..54e1702de 100644 --- a/program/steps/mail/check_recent.inc +++ b/program/steps/mail/check_recent.inc @@ -66,8 +66,8 @@ foreach ($a_mailboxes as $mbox_name) { } } } - else if ($IMAP->messagecount($mbox_name, 'UNSEEN', $check_all)) { - $OUTPUT->command('set_unread_count', $mbox_name, $IMAP->messagecount($mbox_name, 'UNSEEN', $check_all)); + else if ($unseen = $IMAP->messagecount($mbox_name, 'UNSEEN', $check_all)) { + $OUTPUT->command('set_unread_count', $mbox_name, $unseen); } } |