Rearranged order for the "updateAvatar" function

This commit is contained in:
Michael 2020-07-25 11:49:44 +00:00
parent 2c69a9c359
commit cc7a1b181c
3 changed files with 5 additions and 5 deletions

View file

@ -1068,7 +1068,7 @@ function pumpio_get_contact($uid, $contact, $no_insert = false)
}
if (!empty($contact->image->url)) {
Contact::updateAvatar($contact->image->url, $uid, $contact_id);
Contact::updateAvatar($contact_id, $contact->image->url);
}
return $contact_id;