Skip to content

Commit

Permalink
Bugfix: 404 error while opening the dashboard
Browse files Browse the repository at this point in the history
  • Loading branch information
michielgerritsen committed Feb 19, 2024
1 parent e3e8589 commit 5aa2e92
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion app/code/community/Mollie/Mpm/Helper/Data.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,10 @@ class Mollie_Mpm_Helper_Data extends Mage_Core_Helper_Abstract
*/
public function isModuleEnabled($storeId = null, $websiteId = null)
{
if (!is_numeric($storeId)) {
$storeId = Mage::app()->getStore()->getId();
}

return $this->isAvailable($storeId);
}

Expand Down Expand Up @@ -128,7 +132,7 @@ public function isAvailable($storeId = null)
*/
public function getStoreConfig($path, $storeId = null)
{
if ($storeId > 0) {
if (is_numeric($storeId)) {
$value = Mage::getStoreConfig($path, $storeId);
} else {
$value = Mage::getStoreConfig($path);
Expand Down

0 comments on commit 5aa2e92

Please sign in to comment.