issue 1487, added codes for prevent an error when there is no file in layouts

git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@10295 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
flyskyko 2012-03-02 12:18:32 +00:00
parent e1cccf9840
commit eab30b2ace

View file

@ -21,6 +21,10 @@
// Set a layout list
$oLayoutModel = &getModel('layout');
$layout_list = $oLayoutModel->getDownloadedLayoutList('P', true);
if(!is_array($layout_list))
{
$layout_list = array();
}
// get Theme layout
$oAdminModel = &getAdminModel('admin');