Add null/empty string parameter value case in BBCode::convert

- Remove obsolete coalesce operator uses
This commit is contained in:
Hypolite Petovan 2020-06-08 19:15:08 -04:00
commit 89b3ae2657
6 changed files with 11 additions and 6 deletions

View file

@ -78,7 +78,7 @@ function cal_init(App $a)
'$photo' => $profile['photo'],
'$addr' => $profile['addr'] ?: '',
'$account_type' => $account_type,
'$about' => BBCode::convert($profile['about'] ?: ''),
'$about' => BBCode::convert($profile['about']),
]);
$cal_widget = Widget\CalendarExport::getHTML();