From c7719a02cf52a018fd655f4af5b1395c39b92046 Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Sun, 28 Aug 2016 16:04:26 +0200 Subject: [PATCH] Fixed calculation of active menu items --- .../files/lib/data/menu/item/MenuItemNodeTree.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wcfsetup/install/files/lib/data/menu/item/MenuItemNodeTree.class.php b/wcfsetup/install/files/lib/data/menu/item/MenuItemNodeTree.class.php index 344f4eda46..cb7b8f6e2f 100644 --- a/wcfsetup/install/files/lib/data/menu/item/MenuItemNodeTree.class.php +++ b/wcfsetup/install/files/lib/data/menu/item/MenuItemNodeTree.class.php @@ -66,8 +66,8 @@ class MenuItemNodeTree { if (!RequestHandler::getInstance()->isACPRequest()) { $possibleLocations = PageLocationManager::getInstance()->getLocations(); $length = count($possibleLocations); - foreach ($menuItemList as $menuItem) { - for ($i = 0; $i < $length; $i++) { + for ($i = 0; $i < $length; $i++) { + foreach ($menuItemList as $menuItem) { if ($menuItem->pageID == $possibleLocations[$i]['pageID'] && $menuItem->pageObjectID == $possibleLocations[$i]['pageObjectID']) { if (!isset($activeMenuItems[$i])) { $activeMenuItems[$i] = []; -- 2.20.1