If there is no mid list, or if mid list is not array, there was some errors to show admin controller. This rev. fix it.

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@6904 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
misol 2009-10-31 07:18:23 +00:00
parent ea4964ddb8
commit babc377eb7
2 changed files with 29 additions and 26 deletions

View file

@ -61,8 +61,9 @@
// 모듈 카테고리 목록을 구함 // 모듈 카테고리 목록을 구함
$module_categories = $oModuleModel->getModuleCategories(); $module_categories = $oModuleModel->getModuleCategories();
if(!is_array($mid_list)) $mid_list = array($mid_list);
foreach($mid_list as $module_srl => $module) { foreach($mid_list as $module_srl => $module) {
$module_categories[$module->module_category_srl]->list[$module_srl] = $module; if($module) $module_categories[$module->module_category_srl]->list[$module_srl] = $module;
} }
} else { } else {
$module_categories[0]->list = $mid_list; $module_categories[0]->list = $mid_list;

View file

@ -51,6 +51,7 @@
</td> </td>
</tr> </tr>
<!--@if($mid_list)-->
<tr> <tr>
<th scope="row"><div> <th scope="row"><div>
{$lang->module} {$lang->module}
@ -79,6 +80,7 @@
<!--@end--> <!--@end-->
</td> </td>
</tr> </tr>
<!--@end-->
</table> </table>
</div> </div>