forked from Public/pics
EditAsset: handle case where suffix is null.
This commit is contained in:
parent
5c4a075231
commit
b8191bf554
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user