summaryrefslogtreecommitdiff
path: root/includes/image.inc
diff options
context:
space:
mode:
Diffstat (limited to 'includes/image.inc')
-rw-r--r--includes/image.inc3
1 files changed, 2 insertions, 1 deletions
diff --git a/includes/image.inc b/includes/image.inc
index 9dea8d52c..a4cf79b44 100644
--- a/includes/image.inc
+++ b/includes/image.inc
@@ -125,7 +125,8 @@ function image_scale($source, $destination, $width, $height) {
if ($aspect < $height / $width) {
$width = (int)min($width, $info['width']);
$height = (int)round($width * $aspect);
- } else {
+ }
+ else {
$height = (int)min($height, $info['height']);
$width = (int)round($height / $aspect);
}