mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-10 20:44:28 +09:00
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:
parent
ea4964ddb8
commit
babc377eb7
2 changed files with 29 additions and 26 deletions
|
|
@ -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;
|
||||||
|
|
|
||||||
|
|
@ -51,34 +51,36 @@
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<tr>
|
<!--@if($mid_list)-->
|
||||||
<th scope="row"><div>
|
<tr>
|
||||||
{$lang->module}
|
<th scope="row"><div>
|
||||||
<input type="checkbox" onclick="XE.checkboxToggleAll('mid_list'); return false;" />
|
{$lang->module}
|
||||||
</div></th>
|
<input type="checkbox" onclick="XE.checkboxToggleAll('mid_list'); return false;" />
|
||||||
<td>
|
</div></th>
|
||||||
<p>{$lang->about_component_mid}</p>
|
<td>
|
||||||
<!--@foreach($mid_list as $module_category_srl => $modules)-->
|
<p>{$lang->about_component_mid}</p>
|
||||||
<div class="module_category_title">
|
<!--@foreach($mid_list as $module_category_srl => $modules)-->
|
||||||
<input type="checkbox" onclick="XE.checkboxToggleAll('mid_list', { wrap:'section_{$module_category_srl}' }); return false;" />
|
<div class="module_category_title">
|
||||||
<!--@if($modules->title)-->
|
<input type="checkbox" onclick="XE.checkboxToggleAll('mid_list', { wrap:'section_{$module_category_srl}' }); return false;" />
|
||||||
{$modules->title}
|
<!--@if($modules->title)-->
|
||||||
<!--@else-->
|
{$modules->title}
|
||||||
{$lang->none_category}
|
<!--@else-->
|
||||||
<!--@end-->
|
{$lang->none_category}
|
||||||
</div>
|
<!--@end-->
|
||||||
|
</div>
|
||||||
|
|
||||||
<div id="section_{$module_category_srl}">
|
<div id="section_{$module_category_srl}">
|
||||||
<!--@foreach($modules->list as $key => $val)-->
|
<!--@foreach($modules->list as $key => $val)-->
|
||||||
<div class="module_list">
|
<div class="module_list">
|
||||||
<input type="checkbox" value="{$key}" name="mid_list" id="chk_mid_list_{$key}" <!--@if(in_array($key, $component->mid_list))-->checked="checked"<!--@end--> />
|
<input type="checkbox" value="{$key}" name="mid_list" id="chk_mid_list_{$key}" <!--@if(in_array($key, $component->mid_list))-->checked="checked"<!--@end--> />
|
||||||
<label for="chk_mid_list_{$key}">{$key} ({$val->browser_title})</label>
|
<label for="chk_mid_list_{$key}">{$key} ({$val->browser_title})</label>
|
||||||
|
</div>
|
||||||
|
<!--@end-->
|
||||||
</div>
|
</div>
|
||||||
<!--@end-->
|
<!--@end-->
|
||||||
</div>
|
</td>
|
||||||
<!--@end-->
|
</tr>
|
||||||
</td>
|
<!--@end-->
|
||||||
</tr>
|
|
||||||
|
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue