Skip to content

Commit

Permalink
Merge pull request #100 from Tickles-BV/fix-database-handling
Browse files Browse the repository at this point in the history
This fix checks if magento is installed before running sheep debug.
  • Loading branch information
madalinoprea committed Oct 12, 2017
2 parents 547ef47 + b9093a0 commit 9566e83
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions code/Debug/Helper/Data.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ class Sheep_Debug_Helper_Data extends Mage_Core_Helper_Data
*/
public function isEnabled()
{
if(!Mage::isInstalled()) {
return false;
}

return (bool)Mage::getStoreConfig(self::DEBUG_OPTIONS_ENABLE_PATH);
}

Expand Down

0 comments on commit 9566e83

Please sign in to comment.