Fix wrong parameter type issue in `CategoryNode::isVisibleInNestedList()`
authorMatthias Schmidt <gravatronics@live.com>
Sun, 2 Jun 2019 06:58:14 +0000 (08:58 +0200)
committerMatthias Schmidt <gravatronics@live.com>
Sun, 2 Jun 2019 06:58:14 +0000 (08:58 +0200)
See #2886

wcfsetup/install/files/lib/data/category/CategoryNode.class.php

index 1dab61ee36ce92befcb08e69056bf3df978aefe1..4cadf7c0a73ff5e10a5ee09a85b13494f16f5a93 100644 (file)
@@ -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;
                        }