EditAsset: handle case where suffix is null.

This commit is contained in:
Aaron van Geffen 2020-12-30 15:33:13 +01:00
parent 5c4a075231
commit b8191bf554
1 changed files with 1 additions and 1 deletions

View File

@ -118,7 +118,7 @@ class EditAsset extends HTMLController
// Does the thumbnail exist on disk? If not, use an url to generate it.
if (!$filename || !file_exists(THUMBSDIR . '/' . $subdir . '/' . $filename))
$thumb_url = BASEURL . '/thumbnail/' . $image->getId() . '/' . $thumb['width'] . 'x' . $thumb['height'] . $thumb['suffix'] . '/';
$thumb_url = BASEURL . '/thumbnail/' . $image->getId() . '/' . $thumb['width'] . 'x' . $thumb['height'] . ($thumb['suffix'] ?? '') . '/';
else
$thumb_url = THUMBSURL . '/' . $subdir . '/' . $filename;