Removed unnecessary key in foreach loop in wcf\system\menu\TreeMenu
authorMatthias Schmidt <gravatronics@live.com>
Wed, 10 Aug 2011 13:47:12 +0000 (15:47 +0200)
committerMatthias Schmidt <gravatronics@live.com>
Wed, 10 Aug 2011 13:47:12 +0000 (15:47 +0200)
wcfsetup/install/files/lib/system/menu/TreeMenu.class.php

index c854c528f81faa04c1967a73811294c55071c111..1bf0889faf47a86b9fa8c75c23744fcdb70efb81 100644 (file)
@@ -147,7 +147,7 @@ abstract class TreeMenu extends SingletonFactory {
        protected function buildMenuItemList($parentMenuItem = '') {
                if (!isset($this->menuItems[$parentMenuItem])) return;
                
-               foreach ($this->menuItems[$parentMenuItem] as $key => $item) {
+               foreach ($this->menuItems[$parentMenuItem] as $item) {
                        $this->menuItemList[$item->menuItem] = $item;
                        $this->buildMenuItemList($item->menuItem);
                }