Fixed thumbnail size detection
authorMarcel Werk <burntime@woltlab.com>
Sat, 15 Oct 2016 14:04:22 +0000 (16:04 +0200)
committerMarcel Werk <burntime@woltlab.com>
Sat, 15 Oct 2016 14:06:37 +0000 (16:06 +0200)
wcfsetup/install/files/lib/system/bbcode/AttachmentBBCode.class.php

index 43cd1ece2111716bd389dc04b4e2147da448c3a1..3783677786ff9bfd94f2b0fa5a590d3097ba38e3 100644 (file)
@@ -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;
                                        }