Checked PSR-1 / PHP 8.1 Undefiend Varialbe, Type error
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
$sub_menu = "200900";
|
||||
include_once('./_common.php');
|
||||
require_once './_common.php';
|
||||
|
||||
check_demo();
|
||||
|
||||
@ -10,10 +10,11 @@ check_admin_token();
|
||||
|
||||
$count = (isset($_POST['chk']) && is_array($_POST['chk'])) ? count($_POST['chk']) : 0;
|
||||
|
||||
if(!$count)
|
||||
if (!$count) {
|
||||
alert('삭제할 투표목록을 1개이상 선택해 주세요.');
|
||||
}
|
||||
|
||||
for($i=0; $i<$count; $i++) {
|
||||
for ($i = 0; $i < $count; $i++) {
|
||||
$po_id = isset($_POST['chk'][$i]) ? (int) $_POST['chk'][$i] : 0;
|
||||
|
||||
$sql = " delete from {$g5['poll_table']} where po_id = '$po_id' ";
|
||||
@ -23,4 +24,4 @@ for($i=0; $i<$count; $i++) {
|
||||
sql_query($sql);
|
||||
}
|
||||
|
||||
goto_url('./poll_list.php?'.$qstr);
|
||||
goto_url('./poll_list.php?' . $qstr);
|
||||
|
||||
Reference in New Issue
Block a user