Skip to content

Commit

Permalink
abort early if no items found
Browse files Browse the repository at this point in the history
  • Loading branch information
splitbrain committed Aug 28, 2023
1 parent b06c079 commit 74c26ce
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions syntax.php
Expand Up @@ -109,6 +109,7 @@ public function getSortedItems($ns, $current, $useTitle, $useNatSort, $nsFirst)
1,
'' // no sorting, we do ourselves
);
if(!$items) return [];

// split into separate levels
$current = 1;
Expand Down

0 comments on commit 74c26ce

Please sign in to comment.