From: Michael Date: Fri, 5 Jun 2020 10:44:36 +0000 (+0000) Subject: Fix Notice "Undefined index: subscribe" X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=7374104f2916170ff5aa47f8ac1f734828f2f141;p=friendica.git Fix Notice "Undefined index: subscribe" --- diff --git a/src/Model/APContact.php b/src/Model/APContact.php index 68bd80f037..5966b8c25e 100644 --- a/src/Model/APContact.php +++ b/src/Model/APContact.php @@ -304,6 +304,10 @@ class APContact $apcontact['baseurl'] = null; } + if (empty($apcontact['subscribe'])) { + $apcontact['subscribe'] = null; + } + if (!empty($apcontact['baseurl']) && empty($fetched_contact['gsid'])) { $apcontact['gsid'] = GServer::getID($apcontact['baseurl']); } elseif (!empty($fetched_contact['gsid'])) {