Ver Fonte

Merge branch 'hotfix/0.5.2' into dev

Justin Hileman há 14 anos atrás
pai
commit
e928cd956a
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      Mustache.php

+ 1 - 1
Mustache.php

@@ -719,7 +719,7 @@ class Mustache {
 				} else if (isset($view->$tag_name)) {
 					return $view->$tag_name;
 				}
-			} else if (array_key_exists($tag_name, $view)) {
+			} else if (is_array($view) && array_key_exists($tag_name, $view)) {
 				return $view[$tag_name];
 			}
 		}