diff --git a/main/inc/lib/userportal.lib.php b/main/inc/lib/userportal.lib.php index 7fe2739f8a..8196fd9d5c 100755 --- a/main/inc/lib/userportal.lib.php +++ b/main/inc/lib/userportal.lib.php @@ -1007,11 +1007,14 @@ class IndexManager // Tabs that are deactivated are added here. if (!empty($this->tpl->menu_navigation)) { foreach ($this->tpl->menu_navigation as $section => $navigation_info) { - $items[] = [ - 'icon' => null, - 'link' => $navigation_info['url'], - 'title' => $navigation_info['title'], - ]; + + if (!empty($navigation_info)) { + $items[] = [ + 'icon' => null, + 'link' => $navigation_info['url'], + 'title' => $navigation_info['title'], + ]; + } } }