From 75a09466ac6843b9dd861976105c1fc3177cb208 Mon Sep 17 00:00:00 2001 From: thomascube <thomas@roundcube.net> Date: Tue, 10 Mar 2009 04:13:26 -0400 Subject: [PATCH] Fix r2339 for release --- index.php | 1 - program/steps/mail/check_recent.inc | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/index.php b/index.php index 2b65931..3e23471 100644 --- a/index.php +++ b/index.php @@ -183,7 +183,6 @@ 'remove-attachment' => 'attachments.inc', 'display-attachment' => 'attachments.inc', 'upload' => 'attachments.inc', - 'check-recent' => 'check_recent.inc', ), 'addressbook' => array( diff --git a/program/steps/mail/check_recent.inc b/program/steps/mail/check_recent.inc index 438e97b..54e1702 100644 --- a/program/steps/mail/check_recent.inc +++ b/program/steps/mail/check_recent.inc @@ -66,8 +66,8 @@ } } } - 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); } } -- Gitblit v1.9.1