]> git.mxchange.org Git - friendica.git/commitdiff
Possible fix for
authorRoland Häder <roland@mxchange.org>
Fri, 17 Jun 2022 08:57:17 +0000 (10:57 +0200)
committerRoland Häder <roland@mxchange.org>
Fri, 17 Jun 2022 15:18:31 +0000 (17:18 +0200)
Uncaught Exception TypeError: "Return value of
Friendica\Model\APContact::getByURL() must be of the type array, bool returned"

src/Model/APContact.php

index 48e48ab1d70cb7120244b4f09670d90eea9d8cbb..9442db00cdfc79138d101f0bf53cdb1121c240f1 100644 (file)
@@ -206,7 +206,7 @@ class APContact
 
                        if ($failed) {
                                self::markForArchival($fetched_contact ?: []);
-                               return $fetched_contact;
+                               return $fetched_contact ?? [];
                        }
                }