Merge pull request #8453 from annando/notice

OStatus: Avoid a notice
This commit is contained in:
Tobias Diekershoff 2020-03-25 12:06:04 +01:00 committed by GitHub
commit 41e336ffcb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View 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 = [];
}