mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
[ticket/8796] Prevent setting post_time greater than time() in markread
PHPBB3-8796
This commit is contained in:
parent
fccbf09e4a
commit
51862f151d
1 changed files with 30 additions and 30 deletions
|
@ -1291,7 +1291,7 @@ function markread($mode, $forum_id = false, $topic_id = false, $post_time = 0, $
|
||||||
global $db, $user, $config;
|
global $db, $user, $config;
|
||||||
global $request;
|
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')
|
if ($mode == 'all')
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue