summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorthomascube <thomas@roundcube.net>2009-03-10 08:13:26 +0000
committerthomascube <thomas@roundcube.net>2009-03-10 08:13:26 +0000
commit75a09466ac6843b9dd861976105c1fc3177cb208 (patch)
tree0316c1f000b7dd443bf080963322c929d2206e89
parent123300749c7ae0445c121586f97f95202e3c572f (diff)
Fix r2339 for releasev0.2.2@2481v0.2.1@2348
-rw-r--r--index.php1
-rw-r--r--program/steps/mail/check_recent.inc4
2 files changed, 2 insertions, 3 deletions
diff --git a/index.php b/index.php
index 2b6593125..3e23471b6 100644
--- a/index.php
+++ b/index.php
@@ -183,7 +183,6 @@ $action_map = array(
'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 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);
}
}