Changeset 15586 for trunk


Ignore:
Timestamp:
Jun 7, 2012, 3:09:17 PM (12 years ago)
Author:
plg
Message:

merge r15585 from branch 2.3 to trunk

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/ws_functions.inc.php

    r14143 r15586  
    846846    foreach ($categories as $category)
    847847    {
    848       if ($category['id'] == $cat['id'])
     848      if ($category['id'] == $cat['id'] and isset($category['representative_picture_id']))
    849849      {
    850850        $cat['tn_url'] = $thumbnail_src_of[$category['representative_picture_id']];
Note: See TracChangeset for help on using the changeset viewer.