mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-03 16:51:40 +09:00
Fix fatal error when module.xml contains invalid menu reference
https://xetown.com/questions/1588670
This commit is contained in:
parent
c874b318bf
commit
df9e990fdc
1 changed files with 1 additions and 1 deletions
|
|
@ -191,7 +191,7 @@ class ModuleActionParser extends BaseParser
|
|||
|
||||
// Set the menu name and index settings.
|
||||
$menu_name = trim($action['menu_name']);
|
||||
if ($menu_name)
|
||||
if ($menu_name && isset($info->menu->{$menu_name}))
|
||||
{
|
||||
$info->menu->{$menu_name}->acts[] = $action_name;
|
||||
if (toBool($action['menu_index']))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue