summaryrefslogtreecommitdiff
path: root/app/Theme/AbstractTheme.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/Theme/AbstractTheme.php')
-rw-r--r--app/Theme/AbstractTheme.php7
1 files changed, 2 insertions, 5 deletions
diff --git a/app/Theme/AbstractTheme.php b/app/Theme/AbstractTheme.php
index 9e1cb38fa3..0931d3014c 100644
--- a/app/Theme/AbstractTheme.php
+++ b/app/Theme/AbstractTheme.php
@@ -1518,13 +1518,10 @@ abstract class AbstractTheme {
protected function menuModules() {
$menus = array();
foreach (Module::getActiveMenus($this->tree) as $module) {
- $menu = $module->getMenu();
- if ($menu) {
- $menus[] = $menu;
- }
+ $menus[] = $module->getMenu();
}
- return $menus;
+ return array_filter($menus);
}
/**