Skip to content

Commit

Permalink
Avoid undefined array key error
Browse files Browse the repository at this point in the history
  • Loading branch information
dregad committed May 7, 2023
1 parent 9785b7d commit 9418ebb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion syntax.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public function handle($match, $state, $pos, Doku_Handler $handler) {
$namespace = trim(ltrim($options[0], '>'));
$templates = explode(',', $options[1] ?? '');
$templates = array_map('trim', $templates);
$newpagevars = trim($options[2]);
$newpagevars = trim($options[2] ?? '');
return array(
'namespace' => $namespace,
'newpagetemplates' => $templates,
Expand Down

0 comments on commit 9418ebb

Please sign in to comment.