mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-02 01:52:10 +09:00
Fix #1628 error in PHP 8.0 in editor component setup screen
This commit is contained in:
parent
82398be24a
commit
9412cc4a22
3 changed files with 8 additions and 8 deletions
|
|
@ -128,7 +128,10 @@ class editorAdminView extends editor
|
|||
if(!is_array($mid_list)) $mid_list = array($mid_list);
|
||||
foreach($mid_list as $module_srl => $module)
|
||||
{
|
||||
if($module) $module_categories[$module->module_category_srl]->list[$module_srl] = $module;
|
||||
if($module && isset($module_categories[$module->module_category_srl]))
|
||||
{
|
||||
$module_categories[$module->module_category_srl]->list[$module_srl] = $module;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@
|
|||
<a href="#" onclick="winopen('{$component->link}');return false;">{$component->link}</a>
|
||||
</div>
|
||||
</div>
|
||||
<block cond="count($component->extra_vars)">
|
||||
<block cond="$component->extra_vars">
|
||||
<block loop="$component->extra_vars => $id, $var">
|
||||
<block cond="$group != $var->group">
|
||||
<h2>{$var->group}</h2>
|
||||
|
|
|
|||
|
|
@ -1320,13 +1320,10 @@ class moduleModel extends module
|
|||
$args = new stdClass();
|
||||
$args->moduleCategorySrl = $moduleCategorySrl;
|
||||
// Get data from the DB
|
||||
$output = executeQuery('module.getModuleCategories', $args);
|
||||
$output = executeQueryArray('module.getModuleCategories', $args);
|
||||
if(!$output->toBool()) return $output;
|
||||
$list = $output->data;
|
||||
if(!$list) return array();
|
||||
if(!is_array($list)) $list = array($list);
|
||||
|
||||
foreach($list as $val)
|
||||
$category_list = [];
|
||||
foreach($output->data as $val)
|
||||
{
|
||||
$category_list[$val->module_category_srl] = $val;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue