From b8191bf5540026650815d42caa950701992c1f30 Mon Sep 17 00:00:00 2001 From: Aaron van Geffen Date: Wed, 30 Dec 2020 15:33:13 +0100 Subject: [PATCH] EditAsset: handle case where suffix is null. --- controllers/EditAsset.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controllers/EditAsset.php b/controllers/EditAsset.php index a794fd48..3b99a524 100644 --- a/controllers/EditAsset.php +++ b/controllers/EditAsset.php @@ -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;