From 0e1f734b038849d3d213adf0ddc6b02c5c8c1691 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Thu, 16 Jun 2022 17:34:43 +0200 Subject: [PATCH] Also make this null-coalscing --- src/Model/APContact.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Model/APContact.php b/src/Model/APContact.php index 69f9be5135..9c972efaf2 100644 --- a/src/Model/APContact.php +++ b/src/Model/APContact.php @@ -241,8 +241,7 @@ class APContact $apcontact['name'] = $apcontact['nick']; } - $aboutHtml = JsonLD::fetchElement($compacted, 'as:summary', '@value'); - $apcontact['about'] = (!empty($aboutHtml) ? HTML::toBBCode($aboutHtml) : ''); + $apcontact['about'] = HTML::toBBCode(JsonLD::fetchElement($compacted, 'as:summary', '@value') ?? ''); $ims = JsonLD::fetchElementArray($compacted, 'vcard:hasInstantMessage'); -- 2.39.5