Throw exception when something other than text or block tags are encountered inside of a parent tag. Other small cleanups

This commit is contained in:
Dan Miller
2014-04-09 16:15:05 +00:00
parent af8a62c5e2
commit d27840f8ef
4 changed files with 38 additions and 4 deletions
+1 -1
View File
@@ -134,7 +134,7 @@ class Mustache_Context
public function findInBlock($id)
{
foreach($this->block_stack as $context) {
if (is_array($context) && array_key_exists($id, $context)) {
if (array_key_exists($id, $context)) {
return $context[$id];
}
}