From: Mikael Nordfeldth Date: Mon, 21 Apr 2014 20:31:13 +0000 (+0200) Subject: Be more precise in return array from image scaling X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=5fbb66885558bb3460a64df1f37bcd919e381973;p=quix0rs-gnu-social.git Be more precise in return array from image scaling --- diff --git a/lib/imagefile.php b/lib/imagefile.php index a4b77702ec..f99469bbf0 100644 --- a/lib/imagefile.php +++ b/lib/imagefile.php @@ -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)); } }