removing unnecessary local variable in findFromParent function

This commit is contained in:
Dan Miller
2014-04-04 20:42:56 +00:00
parent f47a09538e
commit 31800de88f
+1 -2
View File
@@ -122,8 +122,7 @@ class Mustache_Context
public function findFromParent($id)
{
$stack = $this->stack;
foreach($stack as $context) {
foreach($this->stack as $context) {
if (is_array($context) && array_key_exists($id, $context)) {
return $context[$id];
}