aboutsummaryrefslogtreecommitdiffstats
path: root/include/ws_functions
diff options
context:
space:
mode:
Diffstat (limited to 'include/ws_functions')
-rw-r--r--include/ws_functions/pwg.categories.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/include/ws_functions/pwg.categories.php b/include/ws_functions/pwg.categories.php
index 47dbc4735..da2706ab2 100644
--- a/include/ws_functions/pwg.categories.php
+++ b/include/ws_functions/pwg.categories.php
@@ -486,7 +486,7 @@ SELECT category_id, COUNT(*) AS counter
FROM '. IMAGE_CATEGORY_TABLE .'
GROUP BY category_id
;';
- $nb_images_of = simple_hash_from_query($query, 'category_id', 'counter');
+ $nb_images_of = query2array($query, 'category_id', 'counter');
$query = '
SELECT id, name, comment, uppercats, global_rank
@@ -507,6 +507,12 @@ SELECT id, name, comment, uppercats, global_rank
'ws_categories_getAdminList'
)
);
+ $row['fullname'] = strip_tags(
+ get_cat_display_name_cache(
+ $row['uppercats'],
+ null
+ )
+ );
$row['comment'] = strip_tags(
trigger_event(
'render_category_description',