PHP8 에서 경고문이 나올수 있는 코드 추가 수정
This commit is contained in:
@ -5,12 +5,14 @@ include_once(G5_EDITOR_LIB);
|
||||
|
||||
auth_check_menu($auth, $sub_menu, "w");
|
||||
|
||||
$iq_id = isset($_REQUEST['iq_id']) ? preg_replace('/[^0-9]/', '', $_REQUEST['iq_id']) : 0;
|
||||
|
||||
$sql = " select *
|
||||
from {$g5['g5_shop_item_qa_table']} a
|
||||
left join {$g5['member_table']} b on (a.mb_id = b.mb_id)
|
||||
where iq_id = '$iq_id' ";
|
||||
$iq = sql_fetch($sql);
|
||||
if (!$iq['iq_id']) alert('등록된 자료가 없습니다.');
|
||||
if (! (isset($iq['iq_id']) && $iq['iq_id'])) alert('등록된 자료가 없습니다.');
|
||||
|
||||
$name = get_sideview($iq['mb_id'], get_text($iq['iq_name']), $iq['mb_email'], $iq['mb_homepage']);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user