diff --git a/bbs/list.php b/bbs/list.php index c8d3add00..cd09299b9 100644 --- a/bbs/list.php +++ b/bbs/list.php @@ -8,10 +8,10 @@ if ($board['bo_use_category']) { $is_category = true; $category_location = './board.php?bo_table='.$bo_table.'&sca='; - $categorys = explode('|', $board['bo_category_list']); // 구분자가 , 로 되어 있음 - for ($i=0; $i'; + $categories = explode('|', $board['bo_category_list']); // 구분자가 , 로 되어 있음 + for ($i=0; $i'; } } diff --git a/bbs/write.php b/bbs/write.php index a5954a0e8..3341aa8f3 100644 --- a/bbs/write.php +++ b/bbs/write.php @@ -224,6 +224,7 @@ if ($is_guest || ($is_admin && $w == 'u' && $member['mb_id'] != $write['mb_id']) } $is_category = false; +$category_option = ''; if ($board['bo_use_category']) { $ca_name = ""; if (isset($write['ca_name'])) diff --git a/lib/common.lib.php b/lib/common.lib.php index 01b161511..4ecde76e5 100644 --- a/lib/common.lib.php +++ b/lib/common.lib.php @@ -797,17 +797,17 @@ function get_category_option($bo_table='', $ca_name='') { global $g4, $board; - $arr = explode("|", $board['bo_category_list']); // 구분자가 , 로 되어 있음 + $categories = explode("|", $board['bo_category_list']); // 구분자가 , 로 되어 있음 $str = ""; - for ($i=0; $i
- +
diff --git a/skin/board/neo/write.skin.php b/skin/board/neo/write.skin.php index 136dd0871..f870310b8 100644 --- a/skin/board/neo/write.skin.php +++ b/skin/board/neo/write.skin.php @@ -152,13 +152,12 @@ echo $option_hidden; // 관리자라면 분류 선택에 '공지' 옵션을 추가함 if ($is_admin) { - echo " - if (typeof(document.fwrite.ca_name) != 'undefined') - { - document.fwrite.ca_name.options.length += 1; - document.fwrite.ca_name.options[document.fwrite.ca_name.options.length-1].value = '공지'; - document.fwrite.ca_name.options[document.fwrite.ca_name.options.length-1].text = '공지'; - }"; + echo ' + if (ca_name_select = document.getElementById("ca_name")) { + ca_name_select.options.length += 1; + ca_name_select.options[ca_name_select.options.length-1].value = "공지"; + ca_name_select.options[ca_name_select.options.length-1].text = "공지"; + }'; } ?>