mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 02:31:40 +09:00
Fix #2176 error in unnecessary count()
This commit is contained in:
parent
69c94a5fd7
commit
c27a1d803b
1 changed files with 3 additions and 4 deletions
|
|
@ -172,13 +172,12 @@ class XmlJsFilter extends XeXmlParser
|
||||||
{
|
{
|
||||||
// get the result
|
// get the result
|
||||||
$extend_filter_list = $oExtendFilter->{$method}(TRUE);
|
$extend_filter_list = $oExtendFilter->{$method}(TRUE);
|
||||||
$extend_filter_count = count($extend_filter_list);
|
|
||||||
|
|
||||||
// apply lang_value from the result to the variable
|
// apply lang_value from the result to the variable
|
||||||
for($i = 0; $i < $extend_filter_count; $i++)
|
foreach ($extend_filter_list as $item)
|
||||||
{
|
{
|
||||||
$name = $extend_filter_list[$i]->name;
|
$name = $item->name;
|
||||||
$lang_value = $extend_filter_list[$i]->lang;
|
$lang_value = $item->lang;
|
||||||
if($lang_value)
|
if($lang_value)
|
||||||
{
|
{
|
||||||
$lang->{$name} = $lang_value;
|
$lang->{$name} = $lang_value;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue