From 72ed74e7893e8bbfadc4e6757a59f6dc3aacaaef Mon Sep 17 00:00:00 2001 From: "E. S." Date: Thu, 14 Mar 2024 10:58:12 +0000 Subject: [PATCH] myparsedown fix notice --- lib/ext/MyParsedown.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/lib/ext/MyParsedown.php b/lib/ext/MyParsedown.php index b0815e3..9fc5d38 100644 --- a/lib/ext/MyParsedown.php +++ b/lib/ext/MyParsedown.php @@ -68,10 +68,12 @@ class MyParsedown extends ParsedownExtended { if ($opt == 'nolabel') $opts[$opt] = true; else { - list($k, $v) = explode('=', $opt); - if (!isset($opts[$k])) - continue; - $opts[$k] = $v; + if (str_contains($opt, '=')) { + list($k, $v) = explode('=', $opt); + if (!isset($opts[$k])) + continue; + $opts[$k] = $v; + } } }