aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2016-09-23 20:55:21 +0200
committerMarc Alexander <admin@m-a-styles.de>2016-09-23 20:55:21 +0200
commit77e14c303023365ec38292ef7518b9fed955929a (patch)
treeebd0644accaaa834ff2463c8178b6bf986db0c58 /phpBB
parentbc6dc9f1738109007f0b5ed0b271fc75152ee469 (diff)
parentbecb1e1fff9a5f21ed0378fdc56649f042b7f1eb (diff)
downloadforums-77e14c303023365ec38292ef7518b9fed955929a.tar
forums-77e14c303023365ec38292ef7518b9fed955929a.tar.gz
forums-77e14c303023365ec38292ef7518b9fed955929a.tar.bz2
forums-77e14c303023365ec38292ef7518b9fed955929a.tar.xz
forums-77e14c303023365ec38292ef7518b9fed955929a.zip
Merge pull request #4457 from rxu/ticket/14793
[ticket/14793] Fix "A non-numeric value encountered" PHP warning on PHP 7.1+
Diffstat (limited to 'phpBB')
-rw-r--r--phpBB/includes/functions.php2
-rw-r--r--phpBB/phpbb/db/migration/data/v310/timezone.php2
-rw-r--r--phpBB/phpbb/search/base.php2
3 files changed, 3 insertions, 3 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...
diff --git a/phpBB/phpbb/db/migration/data/v310/timezone.php b/phpBB/phpbb/db/migration/data/v310/timezone.php
index 1f6b47ad50..03a8d1ab34 100644
--- a/phpBB/phpbb/db/migration/data/v310/timezone.php
+++ b/phpBB/phpbb/db/migration/data/v310/timezone.php
@@ -103,7 +103,7 @@ class timezone extends \phpbb\db\migration\migration
*/
public function convert_phpbb30_timezone($timezone, $dst)
{
- $offset = $timezone + $dst;
+ $offset = (float) $timezone + (int) $dst;
switch ($timezone)
{
diff --git a/phpBB/phpbb/search/base.php b/phpBB/phpbb/search/base.php
index d9313dddab..56de973b65 100644
--- a/phpBB/phpbb/search/base.php
+++ b/phpBB/phpbb/search/base.php
@@ -286,7 +286,7 @@ class base
$sql = 'DELETE
FROM ' . SEARCH_RESULTS_TABLE . '
- WHERE search_time < ' . (time() - $config['search_store_results']);
+ WHERE search_time < ' . (time() - (int) $config['search_store_results']);
$db->sql_query($sql);
}
}