]> git.mxchange.org Git - friendica.git/commitdiff
Swap conditions
authorMichael <heluecht@pirati.ca>
Mon, 5 Dec 2022 12:53:21 +0000 (12:53 +0000)
committerMichael <heluecht@pirati.ca>
Mon, 5 Dec 2022 12:53:21 +0000 (12:53 +0000)
src/Object/Image.php

index a79f3a5688bedff988a5fee5db39d164ee16e5dc..6eb86200310aa6bb28d8b908e90fefe0227499d1 100644 (file)
@@ -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;