Fixed tree level w/ maximum depth = 0
authorAlexander Ebert <ebert@woltlab.com>
Thu, 26 Feb 2015 13:04:57 +0000 (14:04 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Thu, 26 Feb 2015 13:04:57 +0000 (14:04 +0100)
Closes #1889

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

index 13a7cbb5c3ea455cbc9aa2da3d94d997397c59b2..b677af8eb4fe2b20fcd9211e90349791c445b898 100644 (file)
@@ -95,7 +95,7 @@ class CategoryNodeTree implements \IteratorAggregate {
                                $parentNode->addChild($childNode);
                                
                                // build next level
-                               $this->buildTreeLevel($childNode);
+                               $this->buildTreeLevel($childNode, $depth - 1);
                        }
                }
        }