bbs/faq.php에서 faq관련된 변수가 있는지 체크

This commit is contained in:
thisgun
2014-02-12 14:55:19 +09:00
parent 15cb9221dc
commit 5baa2b884a

View File

@ -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);