탈퇴 회원 중복 삭제 오류 수정

This commit is contained in:
chicpro
2015-06-17 14:30:47 +09:00
parent 7224f97781
commit 7ed4c7fac9
2 changed files with 9 additions and 2 deletions

View File

@ -41,7 +41,9 @@ if($config['cf_memo_del'] > 0) {
// 탈퇴회원 자동 삭제
if($config['cf_leave_day'] > 0) {
$sql = " select mb_id from {$g5['member_table']} where (TO_DAYS('".G5_TIME_YMDHIS."') - TO_DAYS(mb_leave_date)) > '{$config['cf_leave_day']}' ";
$sql = " select mb_id from {$g5['member_table']}
where (TO_DAYS('".G5_TIME_YMDHIS."') - TO_DAYS(mb_leave_date)) > '{$config['cf_leave_day']}'
and mb_memo not regexp '^[0-9]{8}.*삭제함' ";
$result = sql_query($sql);
while ($row=sql_fetch_array($result))
{