mirror of
https://github.com/fenom-template/fenom.git
synced 2023-08-10 21:13:07 +03:00
fix parseExp parsing arrays
This commit is contained in:
parent
b0ecde05f7
commit
95a41ac169
@ -670,8 +670,9 @@ class Template extends Render {
|
|||||||
}
|
}
|
||||||
$_exp[] = " ".$tokens->getAndNext()." ";
|
$_exp[] = " ".$tokens->getAndNext()." ";
|
||||||
$term = 0;
|
$term = 0;
|
||||||
} elseif($tokens->is('[')) {
|
} elseif(!$term && $tokens->is('[')) {
|
||||||
$_exp[] = $this->parseArray($tokens);
|
$_exp[] = $this->parseArray($tokens);
|
||||||
|
$term = 1;
|
||||||
} else {
|
} else {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user