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