OStatus: Avoid a notice

This commit is contained in:
Michael 2020-03-25 07:29:47 +00:00
parent 9604efae83
commit b36e0e58b7

View file

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