aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorplegall <plg@piwigo.org>2012-06-07 13:08:37 +0000
committerplegall <plg@piwigo.org>2012-06-07 13:08:37 +0000
commite160f4f086d7e8869f025015419a815f694ea9c0 (patch)
treee6d65c17449f24b60cadda317f0c2b06ea4191bf /include
parent9aa13bd5efd5ace215fa156fb12165153686312e (diff)
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
Diffstat (limited to 'include')
-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 853c71c2c..e48e6651d 100644
--- a/include/ws_functions.inc.php
+++ b/include/ws_functions.inc.php
@@ -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']];
}