PHP8에 맞지 않는 함수와 코드 추가 수정

This commit is contained in:
thisgun
2021-01-11 12:19:29 +09:00
parent 47483cd913
commit ba8b4b8c5b
2 changed files with 6 additions and 4 deletions

View File

@ -7,7 +7,7 @@ if (preg_match("/[^\w\-]/", $it_id)) { // \w : 0-9 A-Z a-z _
}
$row = get_shop_item($it_id, true);
if ($row['it_name']) {
if (isset($row['it_name']) && $row['it_name']) {
$it_name = addslashes($row['it_name']);
die("{\"error\":\"이미 등록된 상품코드 입니다.\\n\\n상품명 : {$it_name}\"}");
}