summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/private/legacy/app.php8
1 files changed, 3 insertions, 5 deletions
diff --git a/lib/private/legacy/app.php b/lib/private/legacy/app.php
index 68a8383afbf..56ab59f7238 100644
--- a/lib/private/legacy/app.php
+++ b/lib/private/legacy/app.php
@@ -472,6 +472,7 @@ class OC_App {
$activeAppIndex = -1;
$activeApp = OC::$server->getNavigationManager()->getActiveEntry();
foreach ($list as $index => &$navEntry) {
+ $navEntry['showInHeader'] = true;
if ($navEntry['id'] == $activeApp) {
$navEntry['active'] = true;
$activeAppIndex = $index;
@@ -494,14 +495,11 @@ class OC_App {
}
foreach ($list as $index => &$navEntry) {
- $navEntry['showInHeader'] = false;
- if($index < $headerIconCount) {
- $navEntry['showInHeader'] = true;
+ if($index >= $headerIconCount) {
+ $navEntry['showInHeader'] = false;
}
}
-
-
return $list;
}