fix parsing of array param in function (was falling in endless loop)

This commit is contained in:
klkvsk 2013-07-11 14:09:16 +04:00
parent 3583a2cdfd
commit d307c808a0

View File

@ -1126,7 +1126,11 @@ class Template extends Render {
}
if($tokens->is("=")) {
$tokens->next();
if ($tokens->is('[')) {
$params[ $key ] = $this->parseArray($tokens);
} else {
$params[ $key ] = $this->parseExp($tokens);
}
} else {
$params[ $key ] = 'true';
}