From: Marcel Werk Date: Sat, 14 May 2016 19:29:41 +0000 (+0200) Subject: Fixed removing of disabled menu items X-Git-Tag: 3.0.0_Beta_1~1723 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=e5c8d26591cbfe3130c0502af0de23854af1bc3b;p=GitHub%2FWoltLab%2FWCF.git Fixed removing of disabled menu items --- 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; }