From 56232158a4fc073d299770c821599264e0cf29f6 Mon Sep 17 00:00:00 2001 From: chicpro Date: Wed, 24 Jul 2013 10:54:28 +0900 Subject: [PATCH] =?UTF-8?q?=EA=B2=8C=EC=8B=9C=EA=B8=80=20=EC=82=AD?= =?UTF-8?q?=EC=A0=9C=EC=8B=9C=20=ED=8F=AC=EC=9D=B8=ED=8A=B8=20=EC=A0=9C?= =?UTF-8?q?=EB=8C=80=EB=A1=9C=20=EB=B0=98=EC=98=81=EB=90=98=EC=A7=80=20?= =?UTF-8?q?=EC=95=8A=EB=8A=94=20=EB=AC=B8=EC=A0=9C=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/common.lib.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/common.lib.php b/lib/common.lib.php index 7e113912c..eae0e8afd 100644 --- a/lib/common.lib.php +++ b/lib/common.lib.php @@ -1042,17 +1042,17 @@ function delete_point($mb_id, $rel_table, $rel_id, $rel_action) and po_rel_id = '$rel_id' and po_rel_action = '$rel_action' ", false); + // 포인트 사용 값이 있으면 다른 포인트 내역으로 이동시킴 + if($result && $row['po_expired'] != 1 && $row['po_use_point'] > 0) { + insert_use_point($row['mb_id'], $row['po_use_point'], $row['po_id']); + } + // 포인트 내역의 합을 구하고 $sum_point = get_point_sum($mb_id); // 포인트 UPDATE $sql = " update {$g4['member_table']} set mb_point = '$sum_point' where mb_id = '$mb_id' "; $result = sql_query($sql, false); - - // 포인트 사용 값이 있으면 다른 포인트 내역으로 이동시킴 - if($result && $row['po_expired'] != 1 && $row['po_use_point'] > 0) { - insert_use_point($row['mb_id'], $row['po_use_point'], $row['po_id']); - } } return $result;