]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Be more precise in return array from image scaling
authorMikael Nordfeldth <mmn@hethane.se>
Mon, 21 Apr 2014 20:31:13 +0000 (22:31 +0200)
committerMikael Nordfeldth <mmn@hethane.se>
Mon, 21 Apr 2014 20:31:13 +0000 (22:31 +0200)
lib/imagefile.php

index a4b77702ec5816c1dcd2a1d12e7abf2fb0f8deff..f99469bbf0b790e518ba7d4eedc9152ece30ecbe 100644 (file)
@@ -401,8 +401,8 @@ class ImageFile
         }
         return array(intval($rw), intval($rh),
                     intval($cx), intval($cy),
-                    is_null($cw) ? null : intval($cw),
-                    is_null($ch) ? null : intval($ch));
+                    is_null($cw) ? $width : intval($cw),
+                    is_null($ch) ? $height : intval($ch));
     }
 }