From 9a30573718678da59d63574941df9b80af3e190d Mon Sep 17 00:00:00 2001 From: Justin Hileman Date: Fri, 30 Apr 2010 11:16:43 -0400 Subject: [PATCH] Fixed additional instance of 'only variables should be passed by reference' warning --- Mustache.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Mustache.php b/Mustache.php index 52e101b..6d2aeab 100644 --- a/Mustache.php +++ b/Mustache.php @@ -170,7 +170,8 @@ class Mustache { } } else if ($val) { if (is_array($val) || is_object($val)) { - $replace .= $this->_render($content, $this->getContext($context, $val)); + $c = $this->getContext($context, $val); + $replace .= $this->_render($content, $c); } else { $replace .= $content; }