Fixed warning 'only variables should be passed by reference'

This commit is contained in:
geoffreyd
2010-04-30 23:12:39 +08:00
committed by Justin Hileman
parent 5832dd5b5d
commit d5de2d4af7
+2 -1
View File
@@ -144,7 +144,8 @@ class Mustache {
case '#': case '#':
if ($this->varIsIterable($val)) { if ($this->varIsIterable($val)) {
foreach ($val as $local_context) { 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) { } else if ($val) {
if (is_array($val) || is_object($val)) { if (is_array($val) || is_object($val)) {