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:
@@ -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];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user