From 018222ec6c7aa33aa31d1789aaa9a980c7c17376 Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Sun, 2 Jun 2019 08:58:14 +0200 Subject: [PATCH] Fix wrong parameter type issue in `CategoryNode::isVisibleInNestedList()` See #2886 --- wcfsetup/install/files/lib/data/category/CategoryNode.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.20.1