#18460937 모듈 하나도 없을때 뜨는에러 수정

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@6996 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
misol 2009-11-29 02:25:03 +00:00
parent 85d2b674e8
commit 96d323ca1f
2 changed files with 6 additions and 2 deletions

View file

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

View file

@ -66,6 +66,7 @@
<table cellspacing="0" class="rowTable">
<!--@end-->
<!--@if($mid_list)-->
<tr>
<th scope="row"><div>
{$lang->module}
@ -94,6 +95,7 @@
<!--@end-->
</td>
</tr>
<!--@endif-->
</table>
</div>