diff --git a/bbs/qalist.php b/bbs/qalist.php index 080ce2a16..cff719f2a 100644 --- a/bbs/qalist.php +++ b/bbs/qalist.php @@ -51,7 +51,7 @@ if(is_file($skin_file)) { $stx = trim($stx); if($stx) { if (preg_match("/[a-zA-Z]/", $stx)) - $sql_search .= " and ( INSTR(LOWER(qa_subject), LOWER('$sca')) > 0 or INSTR(LOWER(qa_content), LOWER('$stx')) > 0 )"; + $sql_search .= " and ( INSTR(LOWER(qa_subject), LOWER('$stx')) > 0 or INSTR(LOWER(qa_content), LOWER('$stx')) > 0 )"; else $sql_search .= " and ( INSTR(qa_subject, '$stx') > 0 or INSTR(qa_content, '$stx') > 0 ) "; } diff --git a/bbs/qaview.php b/bbs/qaview.php index 51e296e52..a3b0ad393 100644 --- a/bbs/qaview.php +++ b/bbs/qaview.php @@ -3,7 +3,7 @@ include_once('./_common.php'); include_once(G5_EDITOR_LIB); if($is_guest) - alert('회원이시라면 로그인 후 이용해 보십시오.', './login.php?url='.urlencode(G5_BBS_URL.'/qalist.php')); + alert('회원이시라면 로그인 후 이용해 보십시오.', './login.php?url='.urlencode(G5_BBS_URL.'/qaview.php?qa_id='.$qa_id)); $qaconfig = get_qa_config();