게시글 삭제시 포인트 제대로 반영되지 않는 문제 수정

This commit is contained in:
chicpro
2013-07-24 10:54:28 +09:00
parent 74bc38ae87
commit 56232158a4

View File

@ -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;