mirror of
https://github.com/maxpozdeev/mytinytodo.git
synced 2026-03-11 08:55:27 +00:00
fix deprecation notice of null parameter in noteMarkup() in PHP 8.1
This commit is contained in:
parent
741e60d1f9
commit
21f5ba615d
1 changed files with 3 additions and 0 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue