Avoid deprecation warning when the task description is null

This commit is contained in:
Frédéric Guillot
2022-10-09 15:44:25 -07:00
parent 1664f4c304
commit 669b5c7e2e

View File

@@ -49,7 +49,7 @@ class TextHelper extends Base
$parser = new Markdown($this->container, $isPublicLink); $parser = new Markdown($this->container, $isPublicLink);
$parser->setMarkupEscaped(MARKDOWN_ESCAPE_HTML); $parser->setMarkupEscaped(MARKDOWN_ESCAPE_HTML);
$parser->setBreaksEnabled(true); $parser->setBreaksEnabled(true);
return $parser->text($text); return $parser->text($text ?: '');
} }
/** /**