장바구니 보관기간 설정 오류 수정

This commit is contained in:
chicpro
2014-02-05 09:50:02 +09:00
parent 199a964b1f
commit 18150c193d
6 changed files with 16 additions and 16 deletions

View File

@ -205,8 +205,8 @@ function get_intall_file()
where a.od_id = '$s_cart_id'
and a.ct_select = '1' ";
if($default['de_cart_keep_term']) {
$ctime = date('Y-m-d H:i:s', G5_SERVER_TIME - (($default['de_cart_keep_term'] - 1) * 86400));
$sql .= " and a.ct_time > '$ctime' ";
$ctime = date('Y-m-d', G5_SERVER_TIME - ($default['de_cart_keep_term'] * 86400));
$sql .= " and substring(a.ct_time, 1, 10) >= '$ctime' ";
}
$sql .= " group by a.it_id ";
$sql .= " order by a.ct_id ";