mirror of
https://github.com/phpbb/phpbb.git
synced 2025-02-24 20:13:22 +01:00
[ticket/8796] Prevent setting post_time greater than time() in markread
PHPBB3-8796
This commit is contained in:
parent
fccbf09e4a
commit
51862f151d
@ -1291,7 +1291,7 @@ function markread($mode, $forum_id = false, $topic_id = false, $post_time = 0, $
|
||||
global $db, $user, $config;
|
||||
global $request;
|
||||
|
||||
$post_time = ($post_time === 0) ? time() : (int) $post_time;
|
||||
$post_time = ($post_time === 0 || $post_time > time()) ? time() : (int) $post_time;
|
||||
|
||||
if ($mode == 'all')
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user