Merge pull request #14654 from MrPetovan/bug/14607-view-group

Prevent contact id = 0 case in VCard
This commit is contained in:
Michael Vogel 2025-01-01 22:54:06 +01:00 committed by GitHub
commit d540ec7f8d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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;