mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 02:31:40 +09:00
Fix fatal error when unlinked_menu_srl is null
This commit is contained in:
parent
bd43950c75
commit
740127d83f
1 changed files with 5 additions and 1 deletions
|
|
@ -123,10 +123,14 @@ class MenuAdminController extends Menu
|
||||||
{
|
{
|
||||||
return $unlinked_menu_srl;
|
return $unlinked_menu_srl;
|
||||||
}
|
}
|
||||||
else
|
elseif ($unlinked_menu_srl)
|
||||||
{
|
{
|
||||||
return $this->updateLinkModule($unlinked_modules, $unlinked_menu_srl);
|
return $this->updateLinkModule($unlinked_modules, $unlinked_menu_srl);
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
trigger_error('Cannot find menu_srl for unlinked menu', E_USER_WARNING);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return new BaseObject();
|
return new BaseObject();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue