From dbc257c234007d7437c7d17e7ed6e37c248fcb65 Mon Sep 17 00:00:00 2001 From: Robert Coleman Date: Wed, 27 Nov 2019 22:14:51 +1300 Subject: [PATCH] remove deprecated function from Mage_Adminhtml `each()` is deprecated as of PHP 7.2 https://www.php.net/manual/en/function.each.php --- app/code/core/Mage/Adminhtml/Block/Page/Menu.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/code/core/Mage/Adminhtml/Block/Page/Menu.php b/app/code/core/Mage/Adminhtml/Block/Page/Menu.php index 06e444b90af..6000515956c 100644 --- a/app/code/core/Mage/Adminhtml/Block/Page/Menu.php +++ b/app/code/core/Mage/Adminhtml/Block/Page/Menu.php @@ -177,7 +177,7 @@ protected function _buildMenuArray(Varien_Simplexml_Element $parent=null, $path= uasort($parentArr, array($this, '_sortMenu')); - while (list($key, $value) = each($parentArr)) { + foreach($parentArr as $key => $value) { $last = $key; } if (isset($last)) {