removed one redundant check for height and width beeing set
This commit is contained in:
parent
88a7dd1afb
commit
7b34fdc715
|
@ -285,12 +285,13 @@ class Image
|
||||||
$width = $this->getWidth();
|
$width = $this->getWidth();
|
||||||
$height = $this->getHeight();
|
$height = $this->getHeight();
|
||||||
|
|
||||||
if ((! $width)|| (! $height)) {
|
$scale = Images::getScalingDimensions($width, $height,$max);
|
||||||
|
if ($scale) {
|
||||||
|
return $this->scale($scale['width'], $scale['height']);
|
||||||
|
} else {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
$scale = Images::getScalingDimensions($width, $height,$max);
|
|
||||||
return $this->scale($scale['width'], $scale['height']);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue