]> git.mxchange.org Git - friendica.git/commitdiff
Ensure to not update the "self" contact
authorMichael <heluecht@pirati.ca>
Sun, 4 Jul 2021 12:38:35 +0000 (12:38 +0000)
committerMichael <heluecht@pirati.ca>
Sun, 4 Jul 2021 12:38:35 +0000 (12:38 +0000)
src/Model/Contact.php

index 784f9bb9f46ce7fecd06d25dafb07e3f9400b1af..a45145d9cbb003e9a95d934f5e9e781b9a75fbda 100644 (file)
@@ -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]);
                }
        }