php8.0 버전 호환 코드 적용 및 PHP 끝 태그 삭제 일괄적용
This commit is contained in:
@ -6,7 +6,7 @@ if (!$is_member)
|
||||
|
||||
if ($w == "d")
|
||||
{
|
||||
$wi_id = trim($_GET['wi_id']);
|
||||
$wi_id = isset($_GET['wi_id']) ? (int) $_GET['wi_id'] : 0;
|
||||
|
||||
$sql = " select mb_id from {$g5['g5_shop_wish_table']} where wi_id = '$wi_id' ";
|
||||
$row = sql_fetch($sql);
|
||||
@ -21,9 +21,13 @@ if ($w == "d")
|
||||
}
|
||||
else
|
||||
{
|
||||
$it_id = isset($_POST['it_id']) ? $_POST['it_id'] : null;
|
||||
|
||||
if(is_array($it_id))
|
||||
$it_id = $_POST['it_id'][0];
|
||||
|
||||
$it_id = safe_replace_regex($it_id, 'it_id');
|
||||
|
||||
if(!$it_id)
|
||||
alert('상품코드가 올바르지 않습니다.', G5_SHOP_URL);
|
||||
|
||||
@ -44,15 +48,14 @@ else
|
||||
where mb_id = '{$member['mb_id']}' and it_id = '$it_id' ";
|
||||
$row = sql_fetch($sql);
|
||||
|
||||
if (!$row['wi_id']) { // 없다면 등록
|
||||
if (! (isset($row['wi_id']) && $row['wi_id'])) { // 없다면 등록
|
||||
$sql = " insert {$g5['g5_shop_wish_table']}
|
||||
set mb_id = '{$member['mb_id']}',
|
||||
it_id = '$it_id',
|
||||
wi_time = '".G5_TIME_YMDHIS."',
|
||||
wi_ip = '$REMOTE_ADDR' ";
|
||||
wi_ip = '".$_SERVER['REMOTE_ADDR']."' ";
|
||||
sql_query($sql);
|
||||
}
|
||||
}
|
||||
|
||||
goto_url('./wishlist.php');
|
||||
?>
|
||||
goto_url('./wishlist.php');
|
||||
Reference in New Issue
Block a user