Skip to content

Commit

Permalink
Bug in options handler fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
igittigitt committed Jul 28, 2017
1 parent c304bdf commit 2ae08f1
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions syntax.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public function handle($match, $state, $pos, Doku_Handler $handler) {
$opt = $m;
$val = true;
}
if (in_array($m, $data))
if (array_key_exists($m, $data))
{
$data[$opt] = $val;
}
Expand Down Expand Up @@ -137,12 +137,10 @@ private function _get_defaults() {
/**
* Build the index from namespace scan
*/
private function _build_index($data, &$renderer) {
private function _build_index($opts, &$renderer) {
global $conf;
global $ID;

$opts = $data[0];

// get content of namespace (pages and subdirs)
if ( ! $opts['startns'] || $opts['startns'] == '.') {
$ns = getNS($ID); # current namespace (default)
Expand Down

0 comments on commit 2ae08f1

Please sign in to comment.