]> git.mxchange.org Git - friendica.git/blobdiff - src/Model/APContact.php
Changed to null-coalscing style (??) as sugguested by @MrPetovan
[friendica.git] / src / Model / APContact.php
index e99a692a183f341081bfd99192a59f2ccbfe265d..69f9be5135095d3df00c0eb35dcc58073dc94c50 100644 (file)
@@ -242,9 +242,7 @@ class APContact
                }
 
                $aboutHtml = JsonLD::fetchElement($compacted, 'as:summary', '@value');
-               if ($aboutHtml != "") {
-                       $apcontact['about'] = HTML::toBBCode($aboutHtml);
-               }
+               $apcontact['about'] = (!empty($aboutHtml) ? HTML::toBBCode($aboutHtml) : '');
 
                $ims = JsonLD::fetchElementArray($compacted, 'vcard:hasInstantMessage');