From 95a41ac169316171f23ab97a65294bfd2d860691 Mon Sep 17 00:00:00 2001 From: klkvsk Date: Tue, 30 Jul 2013 15:05:03 +0400 Subject: [PATCH] fix parseExp parsing arrays --- src/Fenom/Template.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Fenom/Template.php b/src/Fenom/Template.php index 50399fd..66ee90e 100644 --- a/src/Fenom/Template.php +++ b/src/Fenom/Template.php @@ -670,8 +670,9 @@ class Template extends Render { } $_exp[] = " ".$tokens->getAndNext()." "; $term = 0; - } elseif($tokens->is('[')) { + } elseif(!$term && $tokens->is('[')) { $_exp[] = $this->parseArray($tokens); + $term = 1; } else { break; }