From: Michael Date: Mon, 5 Dec 2022 12:53:21 +0000 (+0000) Subject: Swap conditions X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=e62be24e6b484a35b975056bf3a1bdfc1e78f5d2;p=friendica.git Swap conditions --- diff --git a/src/Object/Image.php b/src/Object/Image.php index a79f3a5688..6eb8620031 100644 --- a/src/Object/Image.php +++ b/src/Object/Image.php @@ -798,11 +798,11 @@ class Image } } - if (!$this->isImagick()) { + if ($this->isImagick()) { + $this->image->drawImage($draw); + } else { $this->width = imagesx($this->image); $this->height = imagesy($this->image); - } else { - $this->image->drawImage($draw); } $this->valid = true;