Some corrections

This commit is contained in:
Michael 2018-05-02 21:12:48 +00:00
parent 4ad655ab80
commit eecd1e47e4
3 changed files with 3 additions and 2 deletions

View file

@ -2091,6 +2091,7 @@ class DFRN
'confirm' => $relocate["confirm"], 'notify' => $relocate["notify"],
'poll' => $relocate["poll"], 'site-pubkey' => $relocate["sitepubkey"]];
$condition = ["(`id` = ?) OR (`nurl` = ?)", $importer["id"], normalise_link($old["url"])];
dba::update('contact', $fields, $condition);
Contact::updateAvatar($relocate["avatar"], $importer["importer_uid"], $importer["id"], true);