Checked PSR-1 / PHP 8.1 Undefiend Varialbe, type error
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
$sub_menu = '200300';
|
||||
include_once('./_common.php');
|
||||
require_once './_common.php';
|
||||
|
||||
check_demo();
|
||||
|
||||
@ -10,14 +10,15 @@ check_admin_token();
|
||||
|
||||
$post_count_chk = (isset($_POST['chk']) && is_array($_POST['chk'])) ? count($_POST['chk']) : 0;
|
||||
|
||||
if(! $post_count_chk)
|
||||
if (!$post_count_chk) {
|
||||
alert('삭제할 메일목록을 1개이상 선택해 주세요.');
|
||||
}
|
||||
|
||||
for($i=0; $i<$post_count_chk; $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' ";
|
||||
sql_query($sql);
|
||||
}
|
||||
|
||||
goto_url('./mail_list.php');
|
||||
goto_url('./mail_list.php');
|
||||
|
||||
Reference in New Issue
Block a user