From d307c808a0fb4bcf8aa3aa9bd1bea9369649ce74 Mon Sep 17 00:00:00 2001 From: klkvsk Date: Thu, 11 Jul 2013 14:09:16 +0400 Subject: [PATCH] fix parsing of array param in function (was falling in endless loop) --- src/Fenom/Template.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Fenom/Template.php b/src/Fenom/Template.php index b27b822..f67cb78 100644 --- a/src/Fenom/Template.php +++ b/src/Fenom/Template.php @@ -1126,7 +1126,11 @@ class Template extends Render { } if($tokens->is("=")) { $tokens->next(); - $params[ $key ] = $this->parseExp($tokens); + if ($tokens->is('[')) { + $params[ $key ] = $this->parseArray($tokens); + } else { + $params[ $key ] = $this->parseExp($tokens); + } } else { $params[ $key ] = 'true'; }