]> git.mxchange.org Git - friendica.git/commitdiff
OStatus: Avoid a notice
authorMichael <heluecht@pirati.ca>
Wed, 25 Mar 2020 07:29:47 +0000 (07:29 +0000)
committerMichael <heluecht@pirati.ca>
Wed, 25 Mar 2020 07:29:47 +0000 (07:29 +0000)
src/Protocol/OStatus.php

index b707c62c556b3f34c6fc1408b3431e8b71a0f69a..bf3a6ef9d597021227c21bd57b6096dbd592c842 100644 (file)
@@ -247,7 +247,7 @@ class OStatus
                        $gcid = GContact::update($contact);
 
                        GContact::link($gcid, $contact["uid"], $contact["id"]);
-               } elseif ($contact["network"] != Protocol::DFRN) {
+               } elseif (empty($contact["network"]) || ($contact["network"] != Protocol::DFRN)) {
                        $contact = [];
                }