Navigation Menu

Skip to content

Commit

Permalink
merge r15585 from branch 2.3 to trunk
Browse files Browse the repository at this point in the history
bug 2648 fixed: pwg.categories.getList, avoid to throw an error when
representative_picture_id is missing for an album, which makes parsing
the JSON output impossible.



git-svn-id: http://piwigo.org/svn/trunk@15586 68402e56-0260-453c-a942-63ccdbb3a9ee
  • Loading branch information
plegall committed Jun 7, 2012
1 parent 3d7971d commit 1e4bc8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/ws_functions.inc.php
Expand Up @@ -845,7 +845,7 @@ function ws_categories_getList($params, &$service)
{
foreach ($categories as $category)
{
if ($category['id'] == $cat['id'])
if ($category['id'] == $cat['id'] and isset($category['representative_picture_id']))
{
$cat['tn_url'] = $thumbnail_src_of[$category['representative_picture_id']];
}
Expand Down

0 comments on commit 1e4bc8d

Please sign in to comment.