From 38db4d2132e804933d882fc2bbf5f6cb83f0ca8e Mon Sep 17 00:00:00 2001 From: Michael Date: Sun, 8 Dec 2019 21:41:26 +0000 Subject: [PATCH] Fix a notice --- src/Model/Contact.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Model/Contact.php b/src/Model/Contact.php index a30cd39baf..e485794709 100644 --- a/src/Model/Contact.php +++ b/src/Model/Contact.php @@ -1457,6 +1457,7 @@ class Contact extends BaseObject if (DBA::isResult($contact)) { $contact_id = $contact["id"]; + $update_contact = false; // Update the contact every 7 days (Don't update mail or feed contacts) if (in_array($contact['network'], Protocol::FEDERATED)) { @@ -1477,8 +1478,6 @@ class Contact extends BaseObject if (DBA::isResult($mailcontact)) { DBA::update('contact', $mailcontact, ['id' => $contact_id]); } - - $update_contact = false; } // Update the contact in the background if needed but it is called by the frontend