Hide navigation links which dont lead anywhere (looking at you user status)

Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
Joas Schilling 2020-08-05 17:50:20 +02:00
parent fcdd702040
commit 5be04942e7
No known key found for this signature in database
GPG Key ID: 7076EA9751AACDDA
1 changed files with 5 additions and 0 deletions

View File

@ -87,6 +87,11 @@ class AppSearch implements IProvider {
continue;
}
if ($entry['href'] === '') {
// Nothing we can open, so ignore
continue;
}
$result[] = new SearchResultEntry(
'',
$entry['name'],