aboutsummaryrefslogtreecommitdiffstats
path: root/apps/settings
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2020-08-05 17:50:20 +0200
committerJoas Schilling <coding@schilljs.com>2020-08-05 17:50:20 +0200
commit5be04942e733c8e862f81ab2b2ee81730f9aab3a (patch)
tree38203b90cd83cfbaa41dc0ef7f4e71aec4607e7e /apps/settings
parentfcdd702040089d386bbbac7082fa3a1940e5309b (diff)
downloadnextcloud-server-5be04942e733c8e862f81ab2b2ee81730f9aab3a.tar.gz
nextcloud-server-5be04942e733c8e862f81ab2b2ee81730f9aab3a.zip
Hide navigation links which dont lead anywhere (looking at you user status)
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'apps/settings')
-rw-r--r--apps/settings/lib/Search/AppSearch.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/apps/settings/lib/Search/AppSearch.php b/apps/settings/lib/Search/AppSearch.php
index 7e977e42483..f06e060e9a4 100644
--- a/apps/settings/lib/Search/AppSearch.php
+++ b/apps/settings/lib/Search/AppSearch.php
@@ -87,6 +87,11 @@ class AppSearch implements IProvider {
continue;
}
+ if ($entry['href'] === '') {
+ // Nothing we can open, so ignore
+ continue;
+ }
+
$result[] = new SearchResultEntry(
'',
$entry['name'],