aboutsummaryrefslogtreecommitdiffstats
path: root/include/ws_functions.inc.php
diff options
context:
space:
mode:
authorplegall <plg@piwigo.org>2011-12-30 21:25:01 +0000
committerplegall <plg@piwigo.org>2011-12-30 21:25:01 +0000
commit43968c37f4810567addce77eb4e77e69ff136798 (patch)
tree391d12398783ba2b5d321f9539197d905921c2a3 /include/ws_functions.inc.php
parentaaae06429d1bf12d77232757f8111d75cf86dfb0 (diff)
bug 2543 fixed: the representative_picture_id was missing in the SQL query for pwg.categories.getList
git-svn-id: http://piwigo.org/svn/branches/2.3@12809 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'include/ws_functions.inc.php')
-rw-r--r--include/ws_functions.inc.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/ws_functions.inc.php b/include/ws_functions.inc.php
index 5e6abeca1..aafa911c1 100644
--- a/include/ws_functions.inc.php
+++ b/include/ws_functions.inc.php
@@ -490,7 +490,7 @@ function ws_categories_getList($params, &$service)
SELECT id, name, permalink, uppercats, global_rank, id_uppercat,
comment,
nb_images, count_images AS total_nb_images,
- user_representative_picture_id, count_images, count_categories,
+ representative_picture_id, user_representative_picture_id, count_images, count_categories,
date_last, max_date_last, count_categories AS nb_categories
FROM '.CATEGORIES_TABLE.'
'.$join_type.' JOIN '.USER_CACHE_CATEGORIES_TABLE.' ON id=cat_id AND user_id='.$join_user.'