Skip to content

Commit

Permalink
Merge pull request #280 from samuelet/bot/autofix
Browse files Browse the repository at this point in the history
🤖 Automatic code style fixes
  • Loading branch information
Klap-in authored Jan 1, 2024
2 parents 7966c8c + 73ef370 commit 6543c6e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
14 changes: 8 additions & 6 deletions Search.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down
2 changes: 1 addition & 1 deletion action.php
Original file line number Diff line number Diff line change
Expand Up @@ -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]];
}
}
Expand Down

0 comments on commit 6543c6e

Please sign in to comment.