diff --git a/adm/admin.head.php b/adm/admin.head.php index abe05048d..f48cee846 100644 --- a/adm/admin.head.php +++ b/adm/admin.head.php @@ -99,13 +99,13 @@ function textarea_size(fld, size) $href1 = ''; $href2 = ''; } - if (substr($sub_menu, 0, 2) == substr($menu['menu'.$key][0][0], 0, 2)) + if (substr($sub_menu, 0, 2) == substr($menu['menu'.$key][0][0], 0, 2) || $index) $current_class = " gnb_1depth_on"; echo "
  • "; echo $href1 . $menu['menu'.$key][0][1] . $href2; echo print_menu1('menu'.$key, 1); echo "
  • "; - if ($current_class) $current_class = ""; // 클래스 반복부여 방지 + if ($current_class || !$index) $current_class = ""; // 클래스 반복부여 방지 } ?> diff --git a/adm/index.php b/adm/index.php index f28e8e371..534d340c8 100644 --- a/adm/index.php +++ b/adm/index.php @@ -2,6 +2,7 @@ include_once('./_common.php'); $g4['title'] = '관리자메인'; +$index = 1; include_once ('./admin.head.php'); $new_member_rows = 5;