From 10bb7d562571bd2976e6e07fa821ed7e62d23ce2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roland=20H=C3=A4der?= Date: Fri, 17 Jun 2022 10:57:17 +0200 Subject: [PATCH] Possible fix for Uncaught Exception TypeError: "Return value of Friendica\Model\APContact::getByURL() must be of the type array, bool returned" --- src/Model/APContact.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ?? []; } }