From: Matthias Schmidt Date: Sun, 30 Dec 2012 16:32:00 +0000 (+0100) Subject: Adds missing sub-condition in TreeMenu::removeEmptyItems() X-Git-Tag: 2.0.0_Beta_1~648^2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=da80c2543fd8a2a1375f012a7d47a7fe612d2b51;p=GitHub%2FWoltLab%2FWCF.git Adds missing sub-condition in TreeMenu::removeEmptyItems() --- 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]); }