mirror of
https://github.com/friendica/friendica
synced 2025-01-08 19:24:42 +00:00
Prevent contact id = 0 case in VCard
This commit is contained in:
parent
d2dce46184
commit
e3aa9b8121
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