1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-06 16:56:44 +02:00

[ticket/14793] Fix "A non-numeric value encountered" PHP warning on PHP 7.1+

PHPBB3-14793
This commit is contained in:
rxu
2016-09-22 22:29:18 +07:00
parent 6ae405f743
commit 35c62d1e74
3 changed files with 3 additions and 3 deletions

View File

@@ -853,7 +853,7 @@ function markread($mode, $forum_id = false, $topic_id = false, $post_time = 0, $
$tracking['tf'][$forum_id][$topic_id36] = true;
}
$tracking['t'][$topic_id36] = base_convert($post_time - $config['board_startdate'], 10, 36);
$tracking['t'][$topic_id36] = base_convert($post_time - (int) $config['board_startdate'], 10, 36);
// If the cookie grows larger than 10000 characters we will remove the smallest value
// This can result in old topics being unread - but most of the time it should be accurate...