From 0b44a6215d48f0a1e6a63e47fb733658430d7d51 Mon Sep 17 00:00:00 2001 From: Gerrit Uitslag Date: Tue, 9 Aug 2022 21:39:59 +0200 Subject: [PATCH] isset($var=false)=true. Should be initialized to null. --- helper.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/helper.php b/helper.php index 92b33fe..af78fb0 100644 --- a/helper.php +++ b/helper.php @@ -30,7 +30,13 @@ class helper_plugin_wrap extends DokuWiki_Plugin { */ function getAttributes($data, $useNoPrefix=true) { - $attr = array('lang' => false, 'class' => false, 'width' => false, 'id' => false, 'dir' => false); + $attr = array( + 'lang' => null, + 'class' => null, + 'width' => null, + 'id' => null, + 'dir' => null + ); $tokens = preg_split('/\s+/', $data, 9); // anonymous function to convert inclusive comma separated items to regex pattern