]> git.mxchange.org Git - friendica.git/commitdiff
Also make this null-coalscing
authorRoland Häder <roland@mxchange.org>
Thu, 16 Jun 2022 15:34:43 +0000 (17:34 +0200)
committerRoland Häder <roland@mxchange.org>
Thu, 16 Jun 2022 15:35:01 +0000 (17:35 +0200)
src/Model/APContact.php

index 69f9be5135095d3df00c0eb35dcc58073dc94c50..9c972efaf2143b557c3809bccb92482816f9b4bb 100644 (file)
@@ -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');