From ea64441956251751c4c8d1567e640512d2039945 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Peter=20Fr=C3=BChwirt?= Date: Sat, 28 Dec 2024 23:29:55 +0100 Subject: [PATCH] Fixed broken `null` check for attachment thumbnail links --- wcfsetup/install/files/lib/data/attachment/Attachment.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ''; } -- 2.20.1