From e5c8d26591cbfe3130c0502af0de23854af1bc3b Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Sat, 14 May 2016 21:29:41 +0200 Subject: [PATCH] Fixed removing of disabled menu items --- wcfsetup/install/files/lib/data/menu/item/MenuItem.class.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/wcfsetup/install/files/lib/data/menu/item/MenuItem.class.php b/wcfsetup/install/files/lib/data/menu/item/MenuItem.class.php index eb5488967d..91aba8cab0 100644 --- a/wcfsetup/install/files/lib/data/menu/item/MenuItem.class.php +++ b/wcfsetup/install/files/lib/data/menu/item/MenuItem.class.php @@ -120,6 +120,10 @@ class MenuItem extends DatabaseObject { * @return boolean */ public function isVisible() { + if ($this->isDisabled) { + return false; + } + if ($this->getPage() !== null && !$this->getPage()->isVisible()) { return false; } -- 2.20.1