From 21db2b46e3a82ac52caa890d17ec9694aea08b28 Mon Sep 17 00:00:00 2001 From: thisgun Date: Fri, 5 Feb 2021 11:40:10 +0900 Subject: [PATCH] =?UTF-8?q?=ED=9A=8C=EC=9B=90=EB=A9=94=EC=9D=BC=EB=B0=9C?= =?UTF-8?q?=EC=86=A1=20=EC=84=A0=ED=83=9D=EC=82=AD=EC=A0=9C=EA=B0=80=20?= =?UTF-8?q?=EC=95=88=EB=90=98=EB=8A=94=20=EC=98=A4=EB=A5=98=20=EC=88=98?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- adm/mail_delete.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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' ";