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
parent 0c1e876ee0
commit 89b3ae2657
6 changed files with 11 additions and 6 deletions

View file

@ -70,7 +70,7 @@ class Notify extends BaseModel
private function setNameCache()
{
try {
$this->name_cache = strip_tags(BBCode::convert($this->source_name ?? ''));
$this->name_cache = strip_tags(BBCode::convert($this->source_name));
} catch (InternalServerErrorException $e) {
}
}