mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-03 16:51:40 +09:00
Fix #2255 skip modules without defined menu
This commit is contained in:
parent
c235f6b8b3
commit
4a32122af3
1 changed files with 2 additions and 2 deletions
|
|
@ -1624,8 +1624,8 @@ class MenuAdminController extends Menu
|
|||
foreach($installed_module_list AS $key=>$value)
|
||||
{
|
||||
$info = $oModuleModel->getModuleActionXml($value->module);
|
||||
if($info->menu) $menuList[$value->module] = $info->menu;
|
||||
unset($info->menu);
|
||||
$menu = $info->menu ? get_object_vars($info->menu) : [];
|
||||
if($menu) $menuList[$value->module] = $menu;
|
||||
}
|
||||
}
|
||||
$this->add('menuList', $menuList);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue