Fix copy and paste error in image size validation in StyleAddForm
authorTim Düsterhus <duesterhus@woltlab.com>
Mon, 21 Dec 2020 10:10:49 +0000 (11:10 +0100)
committerTim Düsterhus <duesterhus@woltlab.com>
Mon, 21 Dec 2020 10:10:49 +0000 (11:10 +0100)
wcfsetup/install/files/lib/acp/form/StyleAddForm.class.php

index 666b21a5ceaaf8b50f8caba9206d11a478255a6d..dea52fdaa4b81cf45eaf1c24c2c2ed2306c4a546 100644 (file)
@@ -572,8 +572,8 @@ class StyleAddForm extends AbstractForm {
                                
                                $maxWidth = $options['size']['maxWidth'] ?? PHP_INT_MAX;
                                $maxHeight = $options['size']['maxHeight'] ?? PHP_INT_MAX;
-                               $minWidth = $options['size']['maxWidth'] ?? 0;
-                               $minHeight = $options['size']['maxHeight'] ?? 0;
+                               $minWidth = $options['size']['minWidth'] ?? 0;
+                               $minHeight = $options['size']['minHeight'] ?? 0;
                                
                                if ($options['size']['resize'] ?? true) {
                                        if ($imageData[0] > $maxWidth || $imageData[1] > $maxHeight) {