object 변수일 경우 템플릿 foreach 문이 작동하지 않는 문제 수정

#1023 문제 수정

레이아웃 확장변수 (extra_var)가 object 라서 발생한 warning 수정 (왜 object로 했는 지 모르겠지만, array가 더 맞는 듯함)
Warning: count(): Parameter must be an array or an object that implements Countable in php 7.2
This commit is contained in:
conory 2018-03-30 23:28:44 +09:00
parent c4b12c301c
commit 3d24c14f7f
3 changed files with 7 additions and 7 deletions

View file

@ -49,7 +49,7 @@
<span class="x_help-block">{$lang->about_header_script}</span>
</div>
</div>
<section class="section" cond="count($selected_layout->extra_var)">
<section class="section" cond="!empty((array)$selected_layout->extra_var)">
<h1>{$lang->extra_vars}</h1>
{@$cnt = 1}
<block loop="$selected_layout->extra_var => $name, $var">