diff options
| author | rxu <rxu@mail.ru> | 2016-09-22 22:29:18 +0700 |
|---|---|---|
| committer | rxu <rxu@mail.ru> | 2016-09-22 22:29:18 +0700 |
| commit | 35c62d1e74adc445e65a21f3aa317925bd258893 (patch) | |
| tree | 4495d68e9e2cf2f000f6395de8dc404e0cc72c40 /phpBB/phpbb | |
| parent | 6ae405f743b59913c60bb8774ea9e43fd5e34d9e (diff) | |
| download | forums-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/phpbb')
| -rw-r--r-- | phpBB/phpbb/db/migration/data/v310/timezone.php | 2 | ||||
| -rw-r--r-- | phpBB/phpbb/search/base.php | 2 |
2 files changed, 2 insertions, 2 deletions
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); } } |
