Skip to content

Commit

Permalink
#14: Undefined variable
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabrizio Branca committed Feb 20, 2013
1 parent 0a103e7 commit 3b969bc
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions app/code/community/Aoe/TemplateHints/Helper/BlockInfo.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public function getBlockInfo(Mage_Core_Block_Abstract $block, $fullInfo=true) {
/**
* Get block methods (incl. methods of parent classes)
*
* @param Mage_Core_Block_Abstract $className
* @param string $className
* @return array
*/
public function getClassMethods($className) {
Expand All @@ -95,10 +95,12 @@ public function getClassMethods($className) {

$parentClassName = $parentClass->getName();

if (!in_array($currentClass->getName(), array('Mage_Core_Block_Abstract', 'Mage_Core_Block_Template'))) {
if (!in_array($currentClassName, array('Mage_Core_Block_Abstract', 'Mage_Core_Block_Template'))) {
$parentMethods = get_class_methods($parentClassName);
$tmp = array_diff($currentMethods, $parentMethods);
$info[$currentClassName] = array();

// render methods to "methodName($paramter1, $parameter2, ...)"
foreach ($tmp as $methodName) {

$parameters = array();
Expand All @@ -115,6 +117,7 @@ public function getClassMethods($className) {
}
} else {
$info[$currentClassName] = array('(skipping)');
$parentMethods = array();
}

$level++;
Expand Down

0 comments on commit 3b969bc

Please sign in to comment.