From da80c2543fd8a2a1375f012a7d47a7fe612d2b51 Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Sun, 30 Dec 2012 17:32:00 +0100 Subject: [PATCH] Adds missing sub-condition in TreeMenu::removeEmptyItems() --- wcfsetup/install/files/lib/system/menu/TreeMenu.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wcfsetup/install/files/lib/system/menu/TreeMenu.class.php b/wcfsetup/install/files/lib/system/menu/TreeMenu.class.php index 3961dc5716..bae7042a6d 100644 --- a/wcfsetup/install/files/lib/system/menu/TreeMenu.class.php +++ b/wcfsetup/install/files/lib/system/menu/TreeMenu.class.php @@ -131,7 +131,7 @@ abstract class TreeMenu extends SingletonFactory { foreach ($this->menuItems[$parentMenuItem] as $key => $item) { $this->removeEmptyItems($item->menuItem); - if (empty($item->menuItemLink) && (!isset($this->menuItems[$item->menuItem]) || empty($this->menuItems[$item->menuItem]))) { + if (empty($item->menuItemLink) && empty($item->menuItemController) && (!isset($this->menuItems[$item->menuItem]) || empty($this->menuItems[$item->menuItem]))) { // remove this item unset($this->menuItems[$parentMenuItem][$key]); } -- 2.20.1