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/branches/2.3@15585 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
parent
9aa13bd5ef
commit
e160f4f086
1 changed files with 1 additions and 1 deletions
|
@ -715,7 +715,7 @@ SELECT id, path, tn_ext
|
|||
{
|
||||
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']];
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue