From c231e7d772d06ccdb5596521ba18aa9c2856c89d Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Sat, 15 Oct 2016 16:04:22 +0200 Subject: [PATCH] Fixed thumbnail size detection --- .../install/files/lib/system/bbcode/AttachmentBBCode.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wcfsetup/install/files/lib/system/bbcode/AttachmentBBCode.class.php b/wcfsetup/install/files/lib/system/bbcode/AttachmentBBCode.class.php index 43cd1ece21..3783677786 100644 --- a/wcfsetup/install/files/lib/system/bbcode/AttachmentBBCode.class.php +++ b/wcfsetup/install/files/lib/system/bbcode/AttachmentBBCode.class.php @@ -59,7 +59,7 @@ class AttachmentBBCode extends AbstractBBCode { $thumbnail = (isset($openingTag['attributes'][2]) ? $openingTag['attributes'][2] : false); // backward compatibility, check if width is larger than thumbnail's width to display full version - if (is_int($thumbnail)) { + if (is_numeric($thumbnail)) { if ($thumbnail == 0) { $thumbnail = true; } -- 2.20.1