mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-10 12:32:14 +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;
|
$isMenuFixed = false;
|
||||||
$output = $this->getMenu($menuSrl);
|
$output = $this->getMenu($menuSrl);
|
||||||
$php_file = sprintf(_XE_PATH_ . 'files/cache/menu/%s.php',$output->menu_srl);
|
$php_file = sprintf(_XE_PATH_ . 'files/cache/menu/%s.php',$output->menu_srl);
|
||||||
if(file_exists($php_file)) include($php_file);
|
if(file_exists($php_file))
|
||||||
else $oMenuAdminController->makeXmlFile($menuSrl);
|
{
|
||||||
|
include($php_file);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$oMenuAdminController->makeXmlFile($menuSrl);
|
||||||
|
}
|
||||||
|
if(!$menu)
|
||||||
|
{
|
||||||
|
$menu = new stdClass;
|
||||||
|
$menu->list = array();
|
||||||
|
}
|
||||||
|
|
||||||
if(count($menu->list)>0)
|
if(count($menu->list)>0)
|
||||||
{
|
{
|
||||||
|
|
@ -545,6 +556,11 @@ class menuAdminModel extends menu
|
||||||
}
|
}
|
||||||
|
|
||||||
include($value->php_file);
|
include($value->php_file);
|
||||||
|
if(!$menu)
|
||||||
|
{
|
||||||
|
$menu = new stdClass;
|
||||||
|
$menu->list = array();
|
||||||
|
}
|
||||||
|
|
||||||
$isMenuFixed = false;
|
$isMenuFixed = false;
|
||||||
if(count($menu->list) > 0)
|
if(count($menu->list) > 0)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue