PHP8 버전에서 경고 표시가 뜨는 코드 추가 수정

This commit is contained in:
thisgun
2021-01-09 17:19:31 +09:00
parent d80b1d3506
commit a2cf2747bb
7 changed files with 26 additions and 13 deletions

View File

@ -26,7 +26,7 @@ if ($w == "u")
$sql = " select * from {$g5['g5_shop_event_table']} where ev_id = '$ev_id' ";
$ev = sql_fetch($sql);
if (!$ev['ev_id'])
if (! (isset($ev['ev_id']) && $ev['ev_id']))
alert("등록된 자료가 없습니다.");
// 등록된 이벤트 상품