Various fixes to remove warnings in PHP 8.0

This commit is contained in:
Kijin Sung 2020-12-15 00:18:42 +09:00
parent 9a0bf6d907
commit 49923844b2
36 changed files with 271 additions and 176 deletions

View file

@ -98,7 +98,7 @@ class pointModel extends point
$level_count = count($level_step ?: []);
for ($level = 0; $level <= $level_count; $level++)
{
if ($point < $level_step[$level] ?? 0)
if (isset($level_step[$level]) && $point < $level_step[$level])
{
break;
}