mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-23 12:22:15 +09:00
issue 70 admin menu setting error fixed. array check
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@8626 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
0b40d64c2b
commit
1c6be47809
1 changed files with 6 additions and 3 deletions
|
|
@ -99,10 +99,13 @@
|
|||
$oMenuAdminModel = &getAdminModel('menu');
|
||||
$columnList = array('menu_item_srl', 'name');
|
||||
$output = $oMenuAdminModel->getMenuItems($menuSrl, 0, $columnList);
|
||||
foreach($output->data AS $key=>$value)
|
||||
if(is_array($output->data))
|
||||
{
|
||||
preg_match('/\{\$lang->menu_gnb\[(.*?)\]\}/i', $value->name, $m);
|
||||
$gnbDBList[$m[1]] = $value->menu_item_srl;
|
||||
foreach($output->data AS $key=>$value)
|
||||
{
|
||||
preg_match('/\{\$lang->menu_gnb\[(.*?)\]\}/i', $value->name, $m);
|
||||
$gnbDBList[$m[1]] = $value->menu_item_srl;
|
||||
}
|
||||
}
|
||||
|
||||
unset($args);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue