mirror of
https://github.com/friendica/friendica
synced 2024-11-18 02:23:40 +00:00
removed one redundant check for height and width beeing set
This commit is contained in:
parent
88a7dd1afb
commit
7b34fdc715
1 changed files with 4 additions and 3 deletions
|
@ -285,12 +285,13 @@ class Image
|
|||
$width = $this->getWidth();
|
||||
$height = $this->getHeight();
|
||||
|
||||
if ((! $width)|| (! $height)) {
|
||||
$scale = Images::getScalingDimensions($width, $height,$max);
|
||||
if ($scale) {
|
||||
return $this->scale($scale['width'], $scale['height']);
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
|
||||
$scale = Images::getScalingDimensions($width, $height,$max);
|
||||
return $this->scale($scale['width'], $scale['height']);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue