Skip to content

Commit

Permalink
Bugfix: Mage_Adminhtml_Helper_Dashboard_Data->countStores() (#4370)
Browse files Browse the repository at this point in the history
  • Loading branch information
sreichel authored Nov 24, 2024
1 parent 11db607 commit 7e75322
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/code/core/Mage/Adminhtml/Helper/Dashboard/Data.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class Mage_Adminhtml_Helper_Dashboard_Data extends Mage_Core_Helper_Data
/**
* Retrieve stores configured in system.
*
* @return array
* @return Mage_Core_Model_Resource_Store_Collection
*/
public function getStores()
{
Expand All @@ -47,7 +47,7 @@ public function getStores()
*/
public function countStores()
{
return count($this->_stores->getItems());
return count($this->getStores()->getItems());
}

/**
Expand Down

0 comments on commit 7e75322

Please sign in to comment.