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:
@@ -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)
|
||||
{
|
||||
|
Reference in New Issue
Block a user