]> source.dussan.org Git - nextcloud-server.git/commitdiff
Hide navigation links which dont lead anywhere (looking at you user status)
authorJoas Schilling <coding@schilljs.com>
Wed, 5 Aug 2020 15:50:20 +0000 (17:50 +0200)
committerJoas Schilling <coding@schilljs.com>
Wed, 5 Aug 2020 15:50:20 +0000 (17:50 +0200)
Signed-off-by: Joas Schilling <coding@schilljs.com>
apps/settings/lib/Search/AppSearch.php

index 7e977e42483baf68745432d388ba606562a0074e..f06e060e9a4fd30d4de0d15fade24248c0be79e2 100644 (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'],