diff --git a/Search.php b/Search.php index b491aa5..8c3cfe0 100644 --- a/Search.php +++ b/Search.php @@ -427,15 +427,17 @@ public function searchIndexmenuItemsNew(&$data, $base, $file, $type, $lvl, $opts } else { $isOpen = false; } - } elseif (preg_match( - "/^" . (($ns = getNS($id)) === false ? '' : $ns) . "($|:.+)/i", - $subnss[$a][0], - $match - )) { + } elseif ( + preg_match( + "/^" . (($ns = getNS($id)) === false ? '' : $ns) . "($|:.+)/i", + $subnss[$a][0], + $match + ) + ) { // parent folder contains a subnamespace, if level deeper it does not match anymore // that is handled with normal >max handling $isOpen = false; - if($opts['max'] > 0) { + if ($opts['max'] > 0) { $isFolderAdjacentToSubNss = true; } } diff --git a/action.php b/action.php index 122ebdd..4ff564e 100644 --- a/action.php +++ b/action.php @@ -240,7 +240,7 @@ private function getDataFancyTree() } else { //not set via javascript at the moment.. ajax opens per level, so subnss has no use here $subnss = $INPUT->str('subnss'); - if($subnss !== '') { + if ($subnss !== '') { $subnss = [[cleanID($subnss), 1]]; } }