diff --git a/bbs/faq.php b/bbs/faq.php index d3fe9406e..affa51c97 100644 --- a/bbs/faq.php +++ b/bbs/faq.php @@ -64,11 +64,9 @@ if(is_file($skin_file)) { $faq_list = array(); $stx = trim($stx); - $sql_search = ''; if($stx) { $sql_search = " and ( INSTR(fa_subject, '$stx') > 0 or INSTR(fa_content, '$stx') > 0 ) "; - $category_stx = '&stx='.$stx; } if ($page < 1) { $page = 1; } // 페이지가 없으면 첫 페이지 (1 페이지) @@ -92,8 +90,12 @@ if(is_file($skin_file)) { order by fa_order , fa_id limit $from_record, $page_rows "; $result = sql_query($sql); - while ($row=sql_fetch_array($result)){ + for ($i=0;$row=sql_fetch_array($result);$i++){ $faq_list[] = $row; + if($stx) { + $faq_list[$i]['fa_subject'] = search_font($stx, $faq_list[$i]['fa_subject']); + $faq_list[$i]['fa_content'] = search_font($stx, $faq_list[$i]['fa_content']); + } } include_once($skin_file); } else { diff --git a/mobile/skin/faq/basic/list.skin.php b/mobile/skin/faq/basic/list.skin.php index 931fb8832..d823a9579 100644 --- a/mobile/skin/faq/basic/list.skin.php +++ b/mobile/skin/faq/basic/list.skin.php @@ -26,7 +26,7 @@ if( count($faq_master_list) ){ $category_msg = '열린 분류 '; } ?> -
검색된 게시물이 없습니다.
'; + echo '검색된 게시물이 없습니다.
'; } else { echo '검색된 게시물이 없습니다.
'; + echo '검색된 게시물이 없습니다.
'; } else { echo '