1
0
mirror of https://github.com/monstra-cms/monstra.git synced 2025-08-04 04:07:59 +02:00

Update Image.php

This commit is contained in:
Евгений
2013-11-28 14:02:22 +06:00
parent b54cac24b1
commit 05a9ff440f

View File

@@ -173,8 +173,8 @@ class Image
public function resize($width, $height = null, $aspect_ratio = null) public function resize($width, $height = null, $aspect_ratio = null)
{ {
// Redefine vars // Redefine vars
$width = (int) $width; $width = (int) $width;
$height = ($height === null) ? null : (int) $height; $height = ($height === null) ? null : (int) $height;
$aspect_ratio = ($aspect_ratio === null) ? null : (int) $aspect_ratio; $aspect_ratio = ($aspect_ratio === null) ? null : (int) $aspect_ratio;
$xpos = $ypos = 0; $xpos = $ypos = 0;