mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-03 08:41:39 +09:00
Fix fatal error if getUnlinkedMenu() fails during module insert
This commit is contained in:
parent
c3102da73f
commit
85be8b7669
1 changed files with 4 additions and 0 deletions
|
|
@ -443,6 +443,10 @@ class ModuleController extends Module
|
|||
{
|
||||
$oMenuAdminController = getAdminController('menu');
|
||||
$menuSrl = $oMenuAdminController->getUnlinkedMenu();
|
||||
if ($menuSrl instanceof BaseObject && !$menuSrl->toBool())
|
||||
{
|
||||
return $menuSrl;
|
||||
}
|
||||
|
||||
$menuArgs->menu_srl = $menuSrl;
|
||||
$menuArgs->menu_item_srl = getNextSequence();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue