Fixed removing of disabled menu items
authorMarcel Werk <burntime@woltlab.com>
Sat, 14 May 2016 19:29:41 +0000 (21:29 +0200)
committerMarcel Werk <burntime@woltlab.com>
Mon, 16 May 2016 09:51:44 +0000 (11:51 +0200)
wcfsetup/install/files/lib/data/menu/item/MenuItem.class.php

index eb5488967d72d2850bef24789ac3e6f10f7e5f04..91aba8cab05d968087da65076d17e79fde4358ae 100644 (file)
@@ -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;
                }