From 7374104f2916170ff5aa47f8ac1f734828f2f141 Mon Sep 17 00:00:00 2001 From: Michael Date: Fri, 5 Jun 2020 10:44:36 +0000 Subject: [PATCH] Fix Notice "Undefined index: subscribe" --- src/Model/APContact.php | 4 ++++ 1 file changed, 4 insertions(+) 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'])) { -- 2.39.5