From d5de2d4af79f7560ff57bdeeaa7d62e66500582a Mon Sep 17 00:00:00 2001 From: geoffreyd Date: Fri, 30 Apr 2010 22:54:55 +0800 Subject: [PATCH] Fixed warning 'only variables should be passed by reference' --- Mustache.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Mustache.php b/Mustache.php index e1f69cd..a46af65 100644 --- a/Mustache.php +++ b/Mustache.php @@ -144,7 +144,8 @@ class Mustache { case '#': if ($this->varIsIterable($val)) { foreach ($val as $local_context) { - $replace .= $this->_render($content, $this->getContext($context, $local_context)); + $c = $this->getContext($context, $local_context); + $replace .= $this->_render($content, $c); } } else if ($val) { if (is_array($val) || is_object($val)) {