From b36e0e58b71ecb6d92aa2fd38341c2be64cc5858 Mon Sep 17 00:00:00 2001 From: Michael Date: Wed, 25 Mar 2020 07:29:47 +0000 Subject: [PATCH] OStatus: Avoid a notice --- src/Protocol/OStatus.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Protocol/OStatus.php b/src/Protocol/OStatus.php index b707c62c55..bf3a6ef9d5 100644 --- a/src/Protocol/OStatus.php +++ b/src/Protocol/OStatus.php @@ -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 = []; } -- 2.39.5