From: Hypolite Petovan Date: Mon, 9 Jan 2023 15:29:56 +0000 (-0500) Subject: Check image property is set in Object\Image X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=14e4c0db8e4ede6e9567893cc1b67f7ccbde0eca;p=friendica.git Check image property is set in Object\Image - Property was either an object or null, strict comparison with "false" was inaccurate - Address https://github.com/friendica/friendica/issues/12486#issuecomment-1374888800 --- diff --git a/src/Object/Image.php b/src/Object/Image.php index 00f8f3c5bb..d6c897e88d 100644 --- a/src/Object/Image.php +++ b/src/Object/Image.php @@ -196,7 +196,7 @@ class Image public function isValid(): bool { if ($this->isImagick()) { - return ($this->image !== false); + return !empty($this->image); } return $this->valid; }