From: Marcel Werk Date: Sat, 15 Oct 2016 14:04:22 +0000 (+0200) Subject: Fixed thumbnail size detection X-Git-Tag: 3.0.0_Beta_3~41 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=c231e7d772d06ccdb5596521ba18aa9c2856c89d;p=GitHub%2FWoltLab%2FWCF.git Fixed thumbnail size detection --- 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; }