mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 17:21:39 +09:00
Fix E_WARNING when handling an empty menu
This commit is contained in:
parent
b50dc8f340
commit
1b6ccd69a3
1 changed files with 18 additions and 2 deletions
|
|
@ -497,8 +497,19 @@ class menuAdminModel extends menu
|
|||
$isMenuFixed = false;
|
||||
$output = $this->getMenu($menuSrl);
|
||||
$php_file = sprintf(_XE_PATH_ . 'files/cache/menu/%s.php',$output->menu_srl);
|
||||
if(file_exists($php_file)) include($php_file);
|
||||
else $oMenuAdminController->makeXmlFile($menuSrl);
|
||||
if(file_exists($php_file))
|
||||
{
|
||||
include($php_file);
|
||||
}
|
||||
else
|
||||
{
|
||||
$oMenuAdminController->makeXmlFile($menuSrl);
|
||||
}
|
||||
if(!$menu)
|
||||
{
|
||||
$menu = new stdClass;
|
||||
$menu->list = array();
|
||||
}
|
||||
|
||||
if(count($menu->list)>0)
|
||||
{
|
||||
|
|
@ -545,6 +556,11 @@ class menuAdminModel extends menu
|
|||
}
|
||||
|
||||
include($value->php_file);
|
||||
if(!$menu)
|
||||
{
|
||||
$menu = new stdClass;
|
||||
$menu->list = array();
|
||||
}
|
||||
|
||||
$isMenuFixed = false;
|
||||
if(count($menu->list) > 0)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue