Fix #1492 error in PHP 8.0

This commit is contained in:
Kijin Sung 2020-12-16 21:48:21 +09:00
parent 6dbf2b4ebb
commit 5e572a168d
2 changed files with 6 additions and 2 deletions

View file

@ -80,6 +80,10 @@ class addonAdminView extends addon
{
foreach($mid_list as $module_srl => $module)
{
if (!isset($module_categories[$module->module_category_srl]))
{
$module_categories[$module->module_category_srl] = (object)['list' => []];
}
$module_categories[$module->module_category_srl]->list[$module_srl] = $module;
}
}