diff --git a/src/utils/func.image-crop.php b/src/utils/func.image-crop.php index 1d469c4..163454b 100644 --- a/src/utils/func.image-crop.php +++ b/src/utils/func.image-crop.php @@ -64,7 +64,6 @@ function crop($image, $mimeType, $imgWidth, $imgHeight, $newWidth, $newHeight) if (!$temp) { throw new \Exception("Failed to crop image. Please pass the right parameters"); - } else { + } imagejpeg($temp, $image); - } }