mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 01:01:41 +09:00
Fix undefined variable when menu cache file loading fails
This commit is contained in:
parent
3bbc0688f7
commit
b1becc8b2e
1 changed files with 5 additions and 2 deletions
|
|
@ -61,8 +61,11 @@ class MenuMobile extends moduleObject
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if(file_exists($menu_info->php_file)) @include($menu_info->php_file);
|
if (isset($menu_info->php_file) && file_exists($menu_info->php_file))
|
||||||
if(is_array($menu->list))
|
{
|
||||||
|
@include($menu_info->php_file);
|
||||||
|
}
|
||||||
|
if (isset($menu->list) && is_array($menu->list))
|
||||||
{
|
{
|
||||||
foreach($menu->list as $menu_item)
|
foreach($menu->list as $menu_item)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue