diff --git a/core/app/media/Subs-Media.php b/core/app/media/Subs-Media.php index 92fccea8..0802997b 100644 --- a/core/app/media/Subs-Media.php +++ b/core/app/media/Subs-Media.php @@ -2960,7 +2960,7 @@ function aeva_fillMediaArray($request, $all_albums = true) 'transparent' => isset($row['transparency']) && $row['transparency'] == 'transparent', 'thumb_url' => isset($row['thumb_dir']) && !empty($amSettings['clear_thumbnames']) ? $clearurl . '/' . str_replace('%2F', '/', urlencode($row['thumb_dir'])) . '/' . aeva_getEncryptedFilename($row['thumb_file'], $row['id_thumb'], true) : $galurl . 'sa=media;in=' . $row['id_media'] . ';thumb', ); - if ($row['transparency'] == '') + if ($row['transparency'] == '' && $row['type'] == 'image') { $path = $clearurl . '/' . str_replace('%2F', '/', urlencode($row['thumb_dir'])) . '/' . aeva_getEncryptedFilename($row['thumb_file'], $row['id_thumb'], true); $items[$row['id_media']]['transparent'] = aeva_resetTransparency($row['id_thumb'], $path);