Fixes array key in CategoryHandler::getChildCategories()
authorMatthias Schmidt <gravatronics@live.com>
Mon, 11 Jun 2012 07:45:32 +0000 (09:45 +0200)
committerMatthias Schmidt <gravatronics@live.com>
Mon, 11 Jun 2012 07:45:32 +0000 (09:45 +0200)
wcfsetup/install/files/lib/system/category/CategoryHandler.class.php

index f8aa26d954c7144017221df19954737d2dbc42ed..5a70e8c78d84681651d21aaf65c15e03ab337c00 100644 (file)
@@ -97,7 +97,7 @@ class CategoryHandler extends SingletonFactory {
                if (isset($this->categories[$category->objectTypeID])) {
                        foreach ($this->categories[$category->objectTypeID] as $__category) {
                                if ($__category->parentCategoryID == $category->objectTypeCategoryID) {
-                                       $categories[$__category->categoryID] = $__category;
+                                       $categories[$__category->objectTypeCategoryID] = $__category;
                                }
                        }
                }