From 14e4c0db8e4ede6e9567893cc1b67f7ccbde0eca Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Mon, 9 Jan 2023 10:29:56 -0500 Subject: [PATCH] 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 --- src/Object/Image.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.39.5