From b7e7704eac2d01c5345d3b4451bdfe92cfd56756 Mon Sep 17 00:00:00 2001 From: gtbu <60353863+g7sim@users.noreply.github.com> Date: Sat, 29 Oct 2022 18:05:21 +0200 Subject: [PATCH] Submenu-update submenu-bug : line 119 $search_level = 0; // 0 = full-submenu, 1 only 1. sublevel, 2 only 2. level --- include/tool/Output/Menu.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/tool/Output/Menu.php b/include/tool/Output/Menu.php index 6471d89..82fafc1 100644 --- a/include/tool/Output/Menu.php +++ b/include/tool/Output/Menu.php @@ -112,11 +112,11 @@ class Menu{ } - public function GetSubMenu($arg='',$info=false,$search_level=false){ + public function GetSubMenu($arg='',$info=false,$search_level=0){ global $page; $this->curr_menu = $arg; $source_menu_array = $this->GetMenuArray($arg); - + $search_level = 0; // 0 = full-submenu, 1 only 1. sublevel, 2 only 2. level $reset_level = 0; if( !empty($search_level) ){ $reset_level = max(0,$search_level-1);