Преглед на файлове

Fixed warning 'only variables should be passed by reference'

geoffreyd преди 15 години
родител
ревизия
d5de2d4af7
променени са 1 файла, в които са добавени 2 реда и са изтрити 1 реда
  1. 2 1
      Mustache.php

+ 2 - 1
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)) {