issue 428, when not exist, output warning messeage on layout create

git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@9626 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
chschy 2011-10-13 02:11:57 +00:00
parent 3bbb76079e
commit b63411093e
2 changed files with 6 additions and 3 deletions

View file

@ -83,7 +83,9 @@
$oLayoutModel = &getModel('layout');
$oMenuAdminModel = &getAdminModel('menu');
$layout_info = $oLayoutModel->getLayout($args->layout_srl);
$menus = get_object_vars($layout_info->menu);
if($layout_info->menu) {
$menus = get_object_vars($layout_info->menu);
}
if(count($menus) ) {
foreach($menus as $menu_id => $val) {
$menu_srl = Context::get($menu_id);