From 90d7360252ce17144e8502de1fe9c1c0850a784b Mon Sep 17 00:00:00 2001 From: Michael Date: Fri, 23 Jul 2021 13:08:41 +0000 Subject: [PATCH] Standards --- src/Content/Widget/VCard.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Content/Widget/VCard.php b/src/Content/Widget/VCard.php index a7d7d8cbd2..7338d508c4 100644 --- a/src/Content/Widget/VCard.php +++ b/src/Content/Widget/VCard.php @@ -49,8 +49,8 @@ class VCard $network_link = ''; } - $follow_link = ''; - $unfollow_link = ''; + $follow_link = ''; + $unfollow_link = ''; $wallmessage_link = ''; if (local_user()) { @@ -60,6 +60,7 @@ class VCard $pending = $contact['pending']; } else { $pcontact = Contact::selectFirst(['id', 'rel', 'pending'], ['uid' => local_user(), 'uri-id' => $contact['uri-id']]); + $id = $pcontact['id'] ?? 0; $rel = $pcontact['rel'] ?? Contact::NOTHING; $pending = $pcontact['pending'] ?? false;