X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FConsole%2FMergeContacts.php;h=f04b64a23dc4b1507bd0570995ac5e1ed8a02214;hb=d4a5a8051ad34a7be72238967afb3e6b140afdc8;hp=405622cc4b4feb4a827c114c5c8bde34ee737b3c;hpb=91911c4676dc0506c179837ceef23171684f34a5;p=friendica.git diff --git a/src/Console/MergeContacts.php b/src/Console/MergeContacts.php index 405622cc4b..f04b64a23d 100644 --- a/src/Console/MergeContacts.php +++ b/src/Console/MergeContacts.php @@ -1,6 +1,6 @@ updateTable('post-thread-user', 'contact-id', $from, $to, false); $this->updateTable('user-contact', 'cid', $from, $to, true); - if (!$this->dba->delete('contact', ['id' => $from])) { + if (!Contact::deleteById($from)) { $this->err($this->l10n->t('Deletion of id %d failed', $from)); } else { $this->out($this->l10n->t('Deletion of id %d was successful', $from));