aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2013-11-09 20:28:24 +0100
committerMarc Alexander <admin@m-a-styles.de>2013-11-09 20:28:24 +0100
commit252b5fe4f717494adde6644f257a044a661d2a7b (patch)
treebf9e5c0a6d91a461afb56b44ba2555eb6ebf729a
parent3b68540ceed54342dec4400495e91c797e19c44e (diff)
downloadforums-252b5fe4f717494adde6644f257a044a661d2a7b.tar
forums-252b5fe4f717494adde6644f257a044a661d2a7b.tar.gz
forums-252b5fe4f717494adde6644f257a044a661d2a7b.tar.bz2
forums-252b5fe4f717494adde6644f257a044a661d2a7b.tar.xz
forums-252b5fe4f717494adde6644f257a044a661d2a7b.zip
[ŧicket/11896] Set form_time with time() when marking all notifications read
form_time is only set if is passed via the form. Since the mark notifications read link does not use the form, it will default to 0 causing the mark notifications logic to only mark notifications read if their time is smaller or equal to 0. This patch will change ucp_notifications to correctly set form_time for the confirm_box. PHPBB3-11896
-rw-r--r--phpBB/includes/ucp/ucp_notifications.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/includes/ucp/ucp_notifications.php b/phpBB/includes/ucp/ucp_notifications.php
index 5a896c31b0..de9352a322 100644
--- a/phpBB/includes/ucp/ucp_notifications.php
+++ b/phpBB/includes/ucp/ucp_notifications.php
@@ -103,7 +103,7 @@ class ucp_notifications
{
confirm_box(false, 'NOTIFICATIONS_MARK_ALL_READ', build_hidden_fields(array(
'mark' => 'all',
- 'form_time' => $form_time,
+ 'form_time' => time(),
)));
}
}