Merge pull request #136 from bzick/develop

Fix: parse error then modifier's argument converts to false
This commit is contained in:
Ivan Shalganov 2015-01-22 14:54:34 +03:00
commit 01ae6081c6
1 changed files with 1 additions and 1 deletions

View File

@ -1244,7 +1244,7 @@ class Template extends Render
$args = array();
while ($tokens->is(":")) {
if (!$args[] = $this->parseTerm($tokens->next())) {
if (($args[] = $this->parseTerm($tokens->next())) === false) {
throw new UnexpectedTokenException($tokens);
}
}