summaryrefslogtreecommitdiff
path: root/program/steps/mail/mark.inc
diff options
context:
space:
mode:
authorsvncommit <devs@roundcube.net>2006-05-18 15:46:50 +0000
committersvncommit <devs@roundcube.net>2006-05-18 15:46:50 +0000
commitc5ac073c9f48ce33960f66f5cc925bb452ae18b2 (patch)
tree3c06d96cba6a38da8fdac53d29b8fbb72cc3c9db /program/steps/mail/mark.inc
parentdab06575dc33646b50b56522c635ce4c2c6cb8a3 (diff)
renamed $mbox so that it will stop interfering with the $_SESSION when register_globals is turned on
Diffstat (limited to 'program/steps/mail/mark.inc')
-rw-r--r--program/steps/mail/mark.inc5
1 files changed, 2 insertions, 3 deletions
diff --git a/program/steps/mail/mark.inc b/program/steps/mail/mark.inc
index c12429d4a..e6e06f976 100644
--- a/program/steps/mail/mark.inc
+++ b/program/steps/mail/mark.inc
@@ -1,5 +1,4 @@
<?php
-
/*
+-----------------------------------------------------------------------+
| program/steps/mail/mark.inc |
@@ -32,8 +31,8 @@ if ($_GET['_uid'] && $_GET['_flag'])
$marked = $IMAP->set_flag($_GET['_uid'], $flag);
if ($marked != -1)
{
- $mbox = $IMAP->get_mailbox_name();
- $commands = sprintf("this.set_unread_count('%s', %d);\n", $mbox, $IMAP->messagecount($mbox, 'UNSEEN'));
+ $mbox_name = $IMAP->get_mailbox_name();
+ $commands = sprintf("this.set_unread_count('%s', %d);\n", $mbox_name, $IMAP->messagecount($mbox_name, 'UNSEEN'));
rcube_remote_response($commands);
}
}