Skip to content

Commit

Permalink
* More future-proof fix. (Subs-Media.php)
Browse files Browse the repository at this point in the history
  • Loading branch information
Nao committed Jul 25, 2017
1 parent 6ec1c96 commit 0992946
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions core/app/media/Subs-Media.php
Expand Up @@ -2960,10 +2960,10 @@ 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'] == '' && $row['type'] == 'image')
if ($row['transparency'] == '')
{
$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);
$path = empty($row['id_thumb']) ? '' : $clearurl . '/' . str_replace('%2F', '/', urlencode($row['thumb_dir'])) . '/' . aeva_getEncryptedFilename($row['thumb_file'], $row['id_thumb'], true);
$items[$row['id_media']]['transparent'] = empty($row['id_thumb']) ? false : aeva_resetTransparency($row['id_thumb'], $path);
}
}
wesql::free_result($request);
Expand Down

0 comments on commit 0992946

Please sign in to comment.