mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 01:01:41 +09:00
Various fixes to remove warnings in PHP 8.0
This commit is contained in:
parent
9a0bf6d907
commit
49923844b2
36 changed files with 271 additions and 176 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue