From d1b94bb26b55307bab881b58e1ee011e0e854c82 Mon Sep 17 00:00:00 2001 From: chicpro Date: Tue, 4 Jun 2013 15:28:37 +0900 Subject: [PATCH] =?UTF-8?q?#209=20=EC=95=84=EC=9D=B4=EB=94=94=20=EC=A7=81?= =?UTF-8?q?=EC=A0=91=20=EC=9E=85=EB=A0=A5=EC=8B=9C=20=EC=B2=B4=ED=81=AC=20?= =?UTF-8?q?=EC=BD=94=EB=93=9C=20=EC=9C=84=EC=B9=98=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- adm/shop_admin/couponformupdate.php | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/adm/shop_admin/couponformupdate.php b/adm/shop_admin/couponformupdate.php index 38e4f5140..2c4d1f2d6 100644 --- a/adm/shop_admin/couponformupdate.php +++ b/adm/shop_admin/couponformupdate.php @@ -65,6 +65,11 @@ if($w == '') { if($_POST['mb_id'] == $config['cf_admin']) alert('관리자를 제외한 회원의 아이디를 입력해 주십시오.'); + $sql2 = " select mb_id from {$g4['member_table']} where mb_id = '{$_POST['mb_id']}' and mb_leave_date = '' and mb_intercept_date = '' "; + $row2 = sql_fetch($sql2); + if(!$row2['mb_id']) + alert('입력하신 회원아이디는 존재하지 않거나 탈퇴 또는 차단된 회원아이디입니다.'); + $arr_mb_id[] = $_POST['mb_id']; } @@ -73,13 +78,6 @@ if($w == '') { for($i=0; $i<$mb_id_count; $i++) { $mb_id = $arr_mb_id[$i]; - if(!$_POST['chk_all_mb']) { - $sql2 = " select mb_id from {$g4['member_table']} where mb_id = '$mb_id' and mb_leave_date = '' and mb_intercept_date = '' "; - $row2 = sql_fetch($sql2); - if(!$row2['mb_id']) - alert('입력하신 회원아이디는 존재하지 않거나 탈퇴 또는 차단된 회원아이디입니다.'); - } - $j = 0; do { $cp_id = get_coupon_id();