From 05a9ff440f7ba0e555fb9f99762f8abfe4da3e97 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=95=D0=B2=D0=B3=D0=B5=D0=BD=D0=B8=D0=B9?= Date: Thu, 28 Nov 2013 14:02:22 +0600 Subject: [PATCH] Update Image.php --- libraries/Gelato/Image/Image.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/Gelato/Image/Image.php b/libraries/Gelato/Image/Image.php index 33c36c5..c42dd64 100644 --- a/libraries/Gelato/Image/Image.php +++ b/libraries/Gelato/Image/Image.php @@ -173,8 +173,8 @@ class Image public function resize($width, $height = null, $aspect_ratio = null) { // Redefine vars - $width = (int) $width; - $height = ($height === null) ? null : (int) $height; + $width = (int) $width; + $height = ($height === null) ? null : (int) $height; $aspect_ratio = ($aspect_ratio === null) ? null : (int) $aspect_ratio; $xpos = $ypos = 0;