Checked PSR-1 / PHP 8.1 Undefiend Varialbe, type error

This commit is contained in:
kjh
2022-05-30 08:30:08 +00:00
parent b1640d7b76
commit 993e689800
27 changed files with 2694 additions and 2621 deletions

View File

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