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
|
|
@ -92,7 +92,7 @@ class addonController extends addon
|
|||
$extra_vars = new stdClass;
|
||||
}
|
||||
|
||||
$mid_list = $extra_vars->mid_list;
|
||||
$mid_list = $extra_vars->mid_list ?? [];
|
||||
if(!is_array($mid_list))
|
||||
{
|
||||
$mid_list = array();
|
||||
|
|
@ -102,7 +102,7 @@ class addonController extends addon
|
|||
$buff[] = '$before_time = microtime(true);';
|
||||
|
||||
// Run method and mid list
|
||||
$run_method = $extra_vars->xe_run_method ?: 'run_selected';
|
||||
$run_method = ($extra_vars->xe_run_method ?? null) ?: 'run_selected';
|
||||
$buff[] = '$rm = \'' . $run_method . "';";
|
||||
$buff[] = '$ml = ' . var_export(array_fill_keys($mid_list, true), true) . ';';
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue