Skip to content

Commit

Permalink
Merge pull request #240 from Klap-in/fixfalse
Browse files Browse the repository at this point in the history
isset($var=false)=true. Should be initialized to null.
  • Loading branch information
Klap-in authored Aug 9, 2022
2 parents 60dfc9f + 0b44a62 commit 1498754
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1498754

Please sign in to comment.