OpenMage / magento-lts

Official OpenMage LTS codebase | Migrate easily from Magento Community Edition in minutes! Download the source code for free or contribute to OpenMage LTS | Security vulnerability patches, bug fixes, performance improvements and more.
https://www.openmage.org
Open Software License 3.0
870 stars 436 forks source link

Bugfix: `Mage_Adminhtml_Helper_Dashboard_Data::countStores()` on null #4370

Closed sreichel closed 2 days ago

sreichel commented 1 week ago

Part of https://github.com/OpenMage/magento-lts/pull/4340.

Fatal error:  Uncaught Error: Call to a member function getItems() on null in /var/www/html/app/code/core/Mage/Adminhtml/Helper/Dashboard/Data.php:50
Stack trace:
#0 /var/www/html/test.php(68): Mage_Adminhtml_Helper_Dashboard_Data->countStores()
#1 /var/www/html/test.php(79): test4340()

Steps to reproduce (*)

$test = Mage::helper('adminhtml/dashboard_data');
var_dump($test->countStores());