From: Roland Häder Date: Fri, 17 Jun 2022 08:57:17 +0000 (+0200) Subject: Possible fix for X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=10bb7d562571bd2976e6e07fa821ed7e62d23ce2;p=friendica.git Possible fix for Uncaught Exception TypeError: "Return value of Friendica\Model\APContact::getByURL() must be of the type array, bool returned" --- diff --git a/src/Model/APContact.php b/src/Model/APContact.php index 48e48ab1d7..9442db00cd 100644 --- a/src/Model/APContact.php +++ b/src/Model/APContact.php @@ -206,7 +206,7 @@ class APContact if ($failed) { self::markForArchival($fetched_contact ?: []); - return $fetched_contact; + return $fetched_contact ?? []; } }