Merge pull request #7921 from annando/notica

Fix a notice
This commit is contained in:
Philipp 2019-12-08 22:50:19 +01:00 committed by GitHub
commit 3746dd6fa8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1457,6 +1457,7 @@ class Contact extends BaseObject
if (DBA::isResult($contact)) { if (DBA::isResult($contact)) {
$contact_id = $contact["id"]; $contact_id = $contact["id"];
$update_contact = false;
// Update the contact every 7 days (Don't update mail or feed contacts) // Update the contact every 7 days (Don't update mail or feed contacts)
if (in_array($contact['network'], Protocol::FEDERATED)) { if (in_array($contact['network'], Protocol::FEDERATED)) {
@ -1477,8 +1478,6 @@ class Contact extends BaseObject
if (DBA::isResult($mailcontact)) { if (DBA::isResult($mailcontact)) {
DBA::update('contact', $mailcontact, ['id' => $contact_id]); 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 // Update the contact in the background if needed but it is called by the frontend