bbs/faq.php에서 faq관련된 변수가 있는지 체크
This commit is contained in:
@ -3,6 +3,11 @@ include_once('./_common.php');
|
||||
|
||||
if (!$fm_id) $fm_id = 1;
|
||||
|
||||
//dbconfig파일에 $g5['faq_table'] , $g5['faq_master_table'] 배열변수가 있는지 체크
|
||||
if( !isset($g5['faq_table']) || !isset($g5['faq_master_table']) ){
|
||||
die('관리자 모드에서 게시판관리->FAQ관리를 먼저 확인해 주세요.');
|
||||
}
|
||||
|
||||
// FAQ MASTER
|
||||
$sql = " select * from {$g5['faq_master_table']} where fm_id = '$fm_id' ";
|
||||
$fm = sql_fetch($sql);
|
||||
|
||||
Reference in New Issue
Block a user