diff --git a/adm/mail_delete.php b/adm/mail_delete.php index a351bd879..7d2999cfa 100644 --- a/adm/mail_delete.php +++ b/adm/mail_delete.php @@ -10,10 +10,10 @@ check_admin_token(); $post_count_chk = (isset($_POST['chk']) && is_array($_POST['chk'])) ? count($_POST['chk']) : 0; -if(!$count) +if(! $post_count_chk) alert('삭제할 메일목록을 1개이상 선택해 주세요.'); -for($i=0; $i<$count; $i++) { +for($i=0; $i<$post_count_chk; $i++) { $ma_id = isset($_POST['chk'][$i]) ? (int) $_POST['chk'][$i] : 0; $sql = " delete from {$g5['mail_table']} where ma_id = '$ma_id' ";