]> git.mxchange.org Git - friendica.git/commitdiff
Fix Notice "Undefined index: subscribe"
authorMichael <heluecht@pirati.ca>
Fri, 5 Jun 2020 10:44:36 +0000 (10:44 +0000)
committerMichael <heluecht@pirati.ca>
Fri, 5 Jun 2020 10:44:36 +0000 (10:44 +0000)
src/Model/APContact.php

index 68bd80f037b70068c319c936c96c57641f4161fd..5966b8c25e2f80e7464db3bf5f2a57c6cac0bcfd 100644 (file)
@@ -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'])) {