fix deprecation notice of null parameter in noteMarkup() in PHP 8.1

This commit is contained in:
Max Pozdeev 2022-01-11 23:35:36 +03:00
parent 741e60d1f9
commit 21f5ba615d

View file

@ -5,6 +5,9 @@ require_once(MTTINC. 'parsedown/Parsedown.php');
function noteMarkup($note)
{
if ($note === null) {
$note = '';
}
if (Config::get('markup') == 'v1') {
return mttMarkup_v1($note);
}