summaryrefslogtreecommitdiffstats
path: root/lib/private/NavigationManager.php
diff options
context:
space:
mode:
authorDaniel Kesselberg <mail@danielkesselberg.de>2019-02-22 15:45:55 +0100
committerDaniel Kesselberg <mail@danielkesselberg.de>2019-02-22 15:57:14 +0100
commit36c51bc4f160d8b18de64739e9ffccccee8a5b25 (patch)
treea7ed5edf4aa085a8c36792993a7be8caffe681cb /lib/private/NavigationManager.php
parent2083103d0ba8ce41489632ebe240f6dde51baccc (diff)
downloadnextcloud-server-36c51bc4f160d8b18de64739e9ffccccee8a5b25.tar.gz
nextcloud-server-36c51bc4f160d8b18de64739e9ffccccee8a5b25.zip
Parse multiple navigation items
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
Diffstat (limited to 'lib/private/NavigationManager.php')
-rw-r--r--lib/private/NavigationManager.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/NavigationManager.php b/lib/private/NavigationManager.php
index 1874cd0e4ff..a1d3d252af1 100644
--- a/lib/private/NavigationManager.php
+++ b/lib/private/NavigationManager.php
@@ -271,10 +271,10 @@ class NavigationManager implements INavigationManager {
// load plugins and collections from info.xml
$info = $this->appManager->getAppInfo($app);
- if (empty($info['navigations'])) {
+ if (!isset($info['navigations']['navigation'])) {
continue;
}
- foreach ($info['navigations'] as $nav) {
+ foreach ($info['navigations']['navigation'] as $nav) {
if (!isset($nav['name'])) {
continue;
}