diff options
author | Joas Schilling <coding@schilljs.com> | 2020-08-05 17:50:20 +0200 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2020-08-05 17:50:20 +0200 |
commit | 5be04942e733c8e862f81ab2b2ee81730f9aab3a (patch) | |
tree | 38203b90cd83cfbaa41dc0ef7f4e71aec4607e7e /apps/settings | |
parent | fcdd702040089d386bbbac7082fa3a1940e5309b (diff) | |
download | nextcloud-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.php | 5 |
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'], |