save_order_point 함수에 g5 글로벌 변수 추가

This commit is contained in:
chicpro
2013-11-06 15:24:14 +09:00
parent 975dda6ba0
commit 310a1d285f

View File

@ -1779,7 +1779,7 @@ function is_used_coupon($mb_id, $cp_id)
//------------------------------------------------------------------------------
function save_order_point($ct_status="완료")
{
global $default;
global $g5, $default;
$beforedays = date("Y-m-d H:i:s", ( time() - (86400 * (int)$default['de_point_days']) ) ); // 86400초는 하루
$sql = " select * from {$g5['g5_shop_cart_table']} where ct_status = '$ct_status' and ct_point_use = '0' and ct_time <= '$beforedays' ";