mirror of
https://github.com/friendica/friendica
synced 2025-01-08 20:04:43 +00:00
Merge pull request #14654 from MrPetovan/bug/14607-view-group
Prevent contact id = 0 case in VCard
This commit is contained in:
commit
d540ec7f8d
1 changed files with 1 additions and 1 deletions
|
@ -69,7 +69,7 @@ class VCard
|
|||
} else {
|
||||
$pcontact = Contact::selectFirst([], ['uid' => DI::userSession()->getLocalUserId(), 'uri-id' => $contact['uri-id'], 'deleted' => false]);
|
||||
|
||||
$id = $pcontact['id'] ?? 0;
|
||||
$id = $pcontact['id'] ?? $contact['id'];
|
||||
$rel = $pcontact['rel'] ?? Contact::NOTHING;
|
||||
$pending = $pcontact['pending'] ?? false;
|
||||
|
||||
|
|
Loading…
Reference in a new issue