주문폼에서 쿠폰 적용 레이어에서 불필요한 태그가 남아있는 현상 수정
This commit is contained in:
@ -120,10 +120,10 @@ if($w == '') {
|
||||
$sql = " select * from {$g5['g5_shop_coupon_zone_table']} where cz_id = '$cz_id' ";
|
||||
$cp = sql_fetch($sql);
|
||||
|
||||
if(!$cp['cz_id'])
|
||||
if(! (isset($cp['cz_id']) && $cp['cz_id']))
|
||||
alert('쿠폰정보가 존재하지 않습니다.', './couponzonelist.php');
|
||||
|
||||
if ($_POST['cp_img_del'] && $cp['cz_file']) {
|
||||
if ((isset($_POST['cp_img_del']) && $_POST['cp_img_del']) && $cp['cz_file']) {
|
||||
@unlink(G5_DATA_PATH."/coupon/{$cp['cz_file']}");
|
||||
$cp['cz_file'] = '';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user