1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 22:10:45 +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

@@ -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)
{