mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 02:31:40 +09:00
Fix #1929 trying to count nonexistent menus
This commit is contained in:
parent
bb90a10344
commit
6c26e80585
1 changed files with 1 additions and 4 deletions
|
|
@ -111,10 +111,7 @@ class layoutAdminController extends layout
|
||||||
if($layout_info->menu)
|
if($layout_info->menu)
|
||||||
{
|
{
|
||||||
$menus = get_object_vars($layout_info->menu);
|
$menus = get_object_vars($layout_info->menu);
|
||||||
}
|
foreach($menus ?: [] as $menu_id => $val)
|
||||||
if(count($menus))
|
|
||||||
{
|
|
||||||
foreach($menus as $menu_id => $val)
|
|
||||||
{
|
{
|
||||||
$menu_srl = Context::get($menu_id);
|
$menu_srl = Context::get($menu_id);
|
||||||
if(!$menu_srl) continue;
|
if(!$menu_srl) continue;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue