aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions.php
diff options
context:
space:
mode:
authorrxu <rxu@mail.ru>2016-09-22 22:29:18 +0700
committerrxu <rxu@mail.ru>2016-09-22 22:29:18 +0700
commit35c62d1e74adc445e65a21f3aa317925bd258893 (patch)
tree4495d68e9e2cf2f000f6395de8dc404e0cc72c40 /phpBB/includes/functions.php
parent6ae405f743b59913c60bb8774ea9e43fd5e34d9e (diff)
downloadforums-35c62d1e74adc445e65a21f3aa317925bd258893.tar
forums-35c62d1e74adc445e65a21f3aa317925bd258893.tar.gz
forums-35c62d1e74adc445e65a21f3aa317925bd258893.tar.bz2
forums-35c62d1e74adc445e65a21f3aa317925bd258893.tar.xz
forums-35c62d1e74adc445e65a21f3aa317925bd258893.zip
[ticket/14793] Fix "A non-numeric value encountered" PHP warning on PHP 7.1+
PHPBB3-14793
Diffstat (limited to 'phpBB/includes/functions.php')
-rw-r--r--phpBB/includes/functions.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php
index 465964913c..bec4dbc27a 100644
--- a/phpBB/includes/functions.php
+++ b/phpBB/includes/functions.php
@@ -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...