aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions.php
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2016-08-23 21:30:10 +0200
committerMarc Alexander <admin@m-a-styles.de>2016-08-23 21:30:10 +0200
commit0048c2b6135049cd4669ff8208331c3870121f5d (patch)
tree15f931eb2fdb28c5259b552d2e659e9273579dfa /phpBB/includes/functions.php
parentf814840568c004f2de3df828e5b6a7f95de99035 (diff)
downloadforums-0048c2b6135049cd4669ff8208331c3870121f5d.tar
forums-0048c2b6135049cd4669ff8208331c3870121f5d.tar.gz
forums-0048c2b6135049cd4669ff8208331c3870121f5d.tar.bz2
forums-0048c2b6135049cd4669ff8208331c3870121f5d.tar.xz
forums-0048c2b6135049cd4669ff8208331c3870121f5d.zip
[ticket/14748] Make sure config values are casted to int
PHPBB3-14748
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 588a717f0e..5f8519bb41 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...