버전 5.4.5 수정

This commit is contained in:
thisgun
2021-02-05 14:05:22 +09:00
5 changed files with 40 additions and 18 deletions

View File

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