]> git.mxchange.org Git - friendica.git/commitdiff
Fix a notice
authorMichael <heluecht@pirati.ca>
Sun, 8 Dec 2019 21:41:26 +0000 (21:41 +0000)
committerMichael <heluecht@pirati.ca>
Sun, 8 Dec 2019 21:41:26 +0000 (21:41 +0000)
src/Model/Contact.php

index a30cd39baf093c37fdb0853e0d7195b2aca035ac..e48579470942516330e129f4f1554a4877d18c39 100644 (file)
@@ -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