aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNathan Guse <nathaniel.guse@gmail.com>2012-10-29 18:20:07 -0500
committerNathan Guse <nathaniel.guse@gmail.com>2012-10-29 18:20:07 -0500
commitb60ae30b02c411db5ce3711f25e8f43a019ef9ec (patch)
treedb8e9493758eb007c84ca6de19f41a359a175c00
parenta811e65147db4d5c98914d201f2e4478f31f64fc (diff)
downloadforums-b60ae30b02c411db5ce3711f25e8f43a019ef9ec.tar
forums-b60ae30b02c411db5ce3711f25e8f43a019ef9ec.tar.gz
forums-b60ae30b02c411db5ce3711f25e8f43a019ef9ec.tar.bz2
forums-b60ae30b02c411db5ce3711f25e8f43a019ef9ec.tar.xz
forums-b60ae30b02c411db5ce3711f25e8f43a019ef9ec.zip
[ticket/11103] More cleanup
PHPBB3-11103
-rw-r--r--phpBB/includes/notification/manager.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/includes/notification/manager.php b/phpBB/includes/notification/manager.php
index ffdce2032d..b8c9c9742e 100644
--- a/phpBB/includes/notification/manager.php
+++ b/phpBB/includes/notification/manager.php
@@ -262,7 +262,7 @@ class phpbb_notification_manager
return;
}
- $time = ($time) ?: time();
+ $time = ($time !== false) ? $time : time();
$sql = 'UPDATE ' . NOTIFICATIONS_TABLE . "
SET unread = 0
@@ -281,7 +281,7 @@ class phpbb_notification_manager
*/
public function mark_notifications_read_by_id($notification_id, $time = false)
{
- $time = ($time) ?: time();
+ $time = ($time !== false) ? $time : time();
$sql = 'UPDATE ' . NOTIFICATIONS_TABLE . "
SET unread = 0