diff --git a/include/ws_functions/pwg.categories.php b/include/ws_functions/pwg.categories.php index d77b88580..47dbc4735 100644 --- a/include/ws_functions/pwg.categories.php +++ b/include/ws_functions/pwg.categories.php @@ -459,7 +459,7 @@ SELECT id, path, representative_ext if ($params['tree_output']) { - $cats = categories_flatlist_to_tree($cats); + return categories_flatlist_to_tree($cats); } return array(