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:
@ -1126,7 +1126,11 @@ class Template extends Render {
|
|||||||
}
|
}
|
||||||
if($tokens->is("=")) {
|
if($tokens->is("=")) {
|
||||||
$tokens->next();
|
$tokens->next();
|
||||||
$params[ $key ] = $this->parseExp($tokens);
|
if ($tokens->is('[')) {
|
||||||
|
$params[ $key ] = $this->parseArray($tokens);
|
||||||
|
} else {
|
||||||
|
$params[ $key ] = $this->parseExp($tokens);
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
$params[ $key ] = 'true';
|
$params[ $key ] = 'true';
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user