mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-04 09:32:15 +09:00
Protect against potential data structure mismatch in template that uses count()
This commit is contained in:
parent
6dbfde8de1
commit
de194cb6ae
1 changed files with 4 additions and 4 deletions
|
|
@ -100,16 +100,16 @@
|
||||||
<label class="x_control-label">{$lang->target}</label>
|
<label class="x_control-label">{$lang->target}</label>
|
||||||
<div class="x_controls">
|
<div class="x_controls">
|
||||||
<label for="check_all"><input type="checkbox" id="check_all" /> Check all</label>
|
<label for="check_all"><input type="checkbox" id="check_all" /> Check all</label>
|
||||||
<block loop="$mid_list => $module_category_srl, $modules">
|
<block loop="$mid_list => $module_category_srl, $modules">
|
||||||
<!--@if(count($mid_list) > 1)-->
|
<!--@if(is_array($mid_list) && count($mid_list) > 1)-->
|
||||||
<fieldset>
|
<fieldset>
|
||||||
<legend><!--@if($modules->title)-->{$modules->title}<!--@else-->{$lang->none_category}<!--@end--></legend>
|
<legend><!--@if($modules->title)-->{$modules->title}<!--@else-->{$lang->none_category}<!--@end--></legend>
|
||||||
<!--@end-->
|
<!--@end-->
|
||||||
<label loop="$modules->list => $key, $val">
|
<label loop="$modules->list => $key, $val">
|
||||||
<input type="checkbox" value="{$key}" name="mid_list[]" id="chk_mid_list_{$key}" checked="checked"|cond="in_array($key, $addon_info->mid_list)"/>
|
<input type="checkbox" value="{$key}" name="mid_list[]" id="chk_mid_list_{$key}" checked="checked"|cond="in_array($key, $addon_info->mid_list ?? [])"/>
|
||||||
{$key} ({$val->browser_title})
|
{$key} ({$val->browser_title})
|
||||||
</label>
|
</label>
|
||||||
<!--@if(count($mid_list) > 1)-->
|
<!--@if(is_array($mid_list) && count($mid_list) > 1)-->
|
||||||
</fieldset>
|
</fieldset>
|
||||||
<!--@end-->
|
<!--@end-->
|
||||||
</block>
|
</block>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue