Fixes warning when project description is null

Fixes #5059
This commit is contained in:
Rafael de Camargo 2022-09-13 12:18:04 -03:00 committed by Frédéric Guillot
parent adf7430b72
commit 3c5cafc8eb
1 changed files with 2 additions and 2 deletions

View File

@ -71,10 +71,10 @@ class ProjectHeaderHelper extends Base
if (! empty($project['description'])) {
$description .= '<hr>'.PHP_EOL.PHP_EOL;
$description .= $this->helper->text->markdown($project['description']);
$description .= $this->helper->text->markdown($project['description'] ?: '');
}
} else {
$description = $this->helper->text->markdown($project['description']);
$description = $this->helper->text->markdown($project['description'] ?: '');
}
return $description;