From: Matthias Schmidt Date: Sun, 2 Jun 2019 06:58:14 +0000 (+0200) Subject: Fix wrong parameter type issue in `CategoryNode::isVisibleInNestedList()` X-Git-Tag: 5.2.0_Alpha_1~63 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=018222ec6c7aa33aa31d1789aaa9a980c7c17376;p=GitHub%2FWoltLab%2FWCF.git Fix wrong parameter type issue in `CategoryNode::isVisibleInNestedList()` See #2886 --- diff --git a/wcfsetup/install/files/lib/data/category/CategoryNode.class.php b/wcfsetup/install/files/lib/data/category/CategoryNode.class.php index 1dab61ee36..4cadf7c0a7 100644 --- a/wcfsetup/install/files/lib/data/category/CategoryNode.class.php +++ b/wcfsetup/install/files/lib/data/category/CategoryNode.class.php @@ -175,7 +175,7 @@ class CategoryNode extends DatabaseObjectDecorator implements \RecursiveIterator } if ($activeCategory) { - if ($activeCategory->categoryID == $this->categoryID || $activeCategory->getDecoratedObject()->isParentCategory($this->getDecoratedObject())) { + if ($activeCategory->categoryID == $this->categoryID || $activeCategory->isParentCategory($this->getDecoratedObject())) { // is the active category or a parent of the active category return true; }