From: Michael Date: Sun, 4 Jul 2021 12:38:35 +0000 (+0000) Subject: Ensure to not update the "self" contact X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=74a0bfc6da602b8bd94dfa8979819e9d74354bf0;p=friendica.git Ensure to not update the "self" contact --- diff --git a/src/Model/Contact.php b/src/Model/Contact.php index 784f9bb9f4..a45145d9cb 100644 --- a/src/Model/Contact.php +++ b/src/Model/Contact.php @@ -2205,7 +2205,7 @@ class Contact } } if (!empty($fields)) { - DBA::update('contact', $fields, ['id' => $id]); + DBA::update('contact', $fields, ['id' => $id, 'self' => false]); Logger::info('Updating local contact', ['id' => $id]); } }