소스 검색

Fixed additional instance of 'only variables should be passed by reference' warning

Justin Hileman 15 년 전
부모
커밋
9a30573718
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      Mustache.php

+ 2 - 1
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;
 						}