Also make this null-coalscing
This commit is contained in:
parent
e8fee5644b
commit
0e1f734b03
|
@ -241,8 +241,7 @@ class APContact
|
||||||
$apcontact['name'] = $apcontact['nick'];
|
$apcontact['name'] = $apcontact['nick'];
|
||||||
}
|
}
|
||||||
|
|
||||||
$aboutHtml = JsonLD::fetchElement($compacted, 'as:summary', '@value');
|
$apcontact['about'] = HTML::toBBCode(JsonLD::fetchElement($compacted, 'as:summary', '@value') ?? '');
|
||||||
$apcontact['about'] = (!empty($aboutHtml) ? HTML::toBBCode($aboutHtml) : '');
|
|
||||||
|
|
||||||
$ims = JsonLD::fetchElementArray($compacted, 'vcard:hasInstantMessage');
|
$ims = JsonLD::fetchElementArray($compacted, 'vcard:hasInstantMessage');
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user