1:1문의 검색오류 수정 - 참없다님 제보
This commit is contained in:
@ -51,7 +51,7 @@ if(is_file($skin_file)) {
|
|||||||
$stx = trim($stx);
|
$stx = trim($stx);
|
||||||
if($stx) {
|
if($stx) {
|
||||||
if (preg_match("/[a-zA-Z]/", $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
|
else
|
||||||
$sql_search .= " and ( INSTR(qa_subject, '$stx') > 0 or INSTR(qa_content, '$stx') > 0 ) ";
|
$sql_search .= " and ( INSTR(qa_subject, '$stx') > 0 or INSTR(qa_content, '$stx') > 0 ) ";
|
||||||
}
|
}
|
||||||
|
|||||||
@ -3,7 +3,7 @@ include_once('./_common.php');
|
|||||||
include_once(G5_EDITOR_LIB);
|
include_once(G5_EDITOR_LIB);
|
||||||
|
|
||||||
if($is_guest)
|
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();
|
$qaconfig = get_qa_config();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user