mirror of
https://github.com/fenom-template/fenom.git
synced 2023-08-10 21:13:07 +03:00
fix parsing of array param in function (was falling in endless loop)
This commit is contained in:
parent
3583a2cdfd
commit
d307c808a0
@ -1126,7 +1126,11 @@ class Template extends Render {
|
||||
}
|
||||
if($tokens->is("=")) {
|
||||
$tokens->next();
|
||||
$params[ $key ] = $this->parseExp($tokens);
|
||||
if ($tokens->is('[')) {
|
||||
$params[ $key ] = $this->parseArray($tokens);
|
||||
} else {
|
||||
$params[ $key ] = $this->parseExp($tokens);
|
||||
}
|
||||
} else {
|
||||
$params[ $key ] = 'true';
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user