Issue 2380: Admin UI Refactoring - Advanced - Layouts

git-svn-id: http://xe-core.googlecode.com/svn/branches/maserati@11636 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
flyskyko 2012-10-09 02:37:16 +00:00
parent 683b48658e
commit 01a0d56e32
12 changed files with 306 additions and 448 deletions

View file

@ -235,10 +235,13 @@
if(!$force)
{
$layoutInfo = $oLayoutModel->getLayout($layout_srl);
$layoutList = $oLayoutModel->getLayoutInstanceList($layoutInfo->site_srl, $layoutInfo->layout_type, $layoutInfo->layout, array('layout_srl'));
if(count($layoutList) <= 1)
if($layoutInfo)
{
return new Object(-1, 'msg_at_least_one_layout');
$layoutList = $oLayoutModel->getLayoutInstanceList($layoutInfo->site_srl, $layoutInfo->layout_type, $layoutInfo->layout, array('layout_srl'));
if(count($layoutList) <= 1)
{
return new Object(-1, 'msg_at_least_one_layout');
}
}
}