1
0
Fork 0

Merge pull request #8733 from annando/fix-notice

Fix Notice "Undefined index: subscribe"
This commit is contained in:
Tobias Diekershoff 2020-06-05 14:38:24 +02:00 committed by GitHub
commit 2e0151bec0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -304,6 +304,10 @@ class APContact
$apcontact['baseurl'] = null; $apcontact['baseurl'] = null;
} }
if (empty($apcontact['subscribe'])) {
$apcontact['subscribe'] = null;
}
if (!empty($apcontact['baseurl']) && empty($fetched_contact['gsid'])) { if (!empty($apcontact['baseurl']) && empty($fetched_contact['gsid'])) {
$apcontact['gsid'] = GServer::getID($apcontact['baseurl']); $apcontact['gsid'] = GServer::getID($apcontact['baseurl']);
} elseif (!empty($fetched_contact['gsid'])) { } elseif (!empty($fetched_contact['gsid'])) {