From: Peter Frühwirt Date: Sat, 28 Dec 2024 22:29:55 +0000 (+0100) Subject: Fixed broken `null` check for attachment thumbnail links X-Git-Tag: 6.1.3_dev_3~3^2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=ea64441956251751c4c8d1567e640512d2039945;p=GitHub%2FWoltLab%2FWCF.git Fixed broken `null` check for attachment thumbnail links --- diff --git a/wcfsetup/install/files/lib/data/attachment/Attachment.class.php b/wcfsetup/install/files/lib/data/attachment/Attachment.class.php index 1636554105..32d9495a1a 100644 --- a/wcfsetup/install/files/lib/data/attachment/Attachment.class.php +++ b/wcfsetup/install/files/lib/data/attachment/Attachment.class.php @@ -260,7 +260,7 @@ class Attachment extends DatabaseObject implements ILinkableObject, IRouteContro } $thumbnail = $file->getThumbnail($size !== 'tiny' ? '' : $size); - if ($this === null) { + if ($thumbnail === null) { return ''; }