Contact updates should now work more reliable

This commit is contained in:
Michael 2018-02-26 21:53:42 +00:00
parent 3dac937f22
commit d4c95e0032
2 changed files with 9 additions and 8 deletions

View file

@ -1032,7 +1032,7 @@ class Contact extends BaseObject
// Update the public contact (contact id = 0)
if ($uid != 0) {
$pcontact = dba::selectFirst('contact', ['id'], ['nurl' => $contact['nurl']]);
$pcontact = dba::selectFirst('contact', ['id'], ['nurl' => $contact['nurl'], 'uid' => 0]);
if (DBM::is_result($pcontact)) {
self::updateAvatar($avatar, 0, $pcontact['id'], $force);
}