mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-09 16:05:00 +02:00
[ticket/11103] More cleanup
PHPBB3-11103
This commit is contained in:
parent
a811e65147
commit
b60ae30b02
@ -262,7 +262,7 @@ class phpbb_notification_manager
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
$time = ($time) ?: time();
|
$time = ($time !== false) ? $time : time();
|
||||||
|
|
||||||
$sql = 'UPDATE ' . NOTIFICATIONS_TABLE . "
|
$sql = 'UPDATE ' . NOTIFICATIONS_TABLE . "
|
||||||
SET unread = 0
|
SET unread = 0
|
||||||
@ -281,7 +281,7 @@ class phpbb_notification_manager
|
|||||||
*/
|
*/
|
||||||
public function mark_notifications_read_by_id($notification_id, $time = false)
|
public function mark_notifications_read_by_id($notification_id, $time = false)
|
||||||
{
|
{
|
||||||
$time = ($time) ?: time();
|
$time = ($time !== false) ? $time : time();
|
||||||
|
|
||||||
$sql = 'UPDATE ' . NOTIFICATIONS_TABLE . "
|
$sql = 'UPDATE ' . NOTIFICATIONS_TABLE . "
|
||||||
SET unread = 0
|
SET unread = 0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user