Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@ class Smile_Tracker_Block_Variables_Abstract extends Mage_Core_Block_Template
public function isEnabled()
{
$mainBlock = $this->getLayout()->getBlock('smile.tracker.config');

return !is_null($mainBlock) && $mainBlock->isEnabled();
return $mainBlock && $mainBlock->isEnabled();
}

/**
Expand All @@ -40,4 +39,4 @@ protected function _toHtml()
}
return $html;
}
}
}