Fix: parse error then modifier's argument converts to false

This commit is contained in:
bzick 2015-01-22 13:55:22 +03:00
parent 7ac11fb3cc
commit 2f769c294c

View File

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