Merge pull request #36 from klkvsk/fix-parseExp-array

Fix parseExp parsing arrays
This commit is contained in:
Ivan Shalganov 2013-07-30 04:25:14 -07:00
commit 6468862df3

View File

@ -670,8 +670,9 @@ class Template extends Render {
} }
$_exp[] = " ".$tokens->getAndNext()." "; $_exp[] = " ".$tokens->getAndNext()." ";
$term = 0; $term = 0;
} elseif($tokens->is('[')) { } elseif(!$term && $tokens->is('[')) {
$_exp[] = $this->parseArray($tokens); $_exp[] = $this->parseArray($tokens);
$term = 1;
} else { } else {
break; break;
} }