From 21f5ba615dcce39fbb26b548346050f0c0afac0b Mon Sep 17 00:00:00 2001 From: Max Pozdeev Date: Tue, 11 Jan 2022 23:35:36 +0300 Subject: [PATCH] fix deprecation notice of null parameter in noteMarkup() in PHP 8.1 --- src/includes/markup.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/includes/markup.php b/src/includes/markup.php index dd616c3..0a13701 100644 --- a/src/includes/markup.php +++ b/src/includes/markup.php @@ -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); }