mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 01:01:41 +09:00
Fix #1480 misc errors in PHP 8.0
This commit is contained in:
parent
6d4fe58c2f
commit
372e392049
6 changed files with 13 additions and 10 deletions
|
|
@ -31,10 +31,10 @@ class widgetController extends widget
|
|||
$oModuleModel = getModel('module');
|
||||
$skin_info = $oModuleModel->loadSkinInfo($path, $skin);
|
||||
|
||||
for($i=0;$i<count($skin_info->colorset);$i++)
|
||||
$colorset_list = [];
|
||||
foreach($skin_info->colorset ?: [] as $colorset)
|
||||
{
|
||||
$colorset = sprintf('%s|@|%s', $skin_info->colorset[$i]->name, $skin_info->colorset[$i]->title);
|
||||
$colorset_list[] = $colorset;
|
||||
$colorset_list[] = sprintf('%s|@|%s', $colorset->name, $colorset->title);
|
||||
}
|
||||
|
||||
if(count($colorset_list)) $colorsets = implode("\n", $colorset_list);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue