Changeset 15585


Ignore:
Timestamp:
Jun 7, 2012, 3:08:37 PM (8 years ago)
Author:
plg
Message:

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
  • branches/2.3/include/ws_functions.inc.php

    r13083 r15585  
    716716    foreach ($categories as $category)
    717717    {
    718       if ($category['id'] == $cat['id'])
     718      if ($category['id'] == $cat['id'] and isset($category['representative_picture_id']))
    719719      {
    720720        $cat['tn_url'] = $thumbnail_src_of[$category['representative_picture_id']];
Note: See TracChangeset for help on using the changeset viewer.