aboutsummaryrefslogtreecommitdiffstats
path: root/include/ws_functions.inc.php
diff options
context:
space:
mode:
Diffstat (limited to 'include/ws_functions.inc.php')
-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 31cc8662f..0ecd8b930 100644
--- a/include/ws_functions.inc.php
+++ b/include/ws_functions.inc.php
@@ -845,7 +845,7 @@ SELECT id, path, representative_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']];
}