PHP80 버전에서 경고문이 나오는 코드 및 글 이동시 오류 현상 수정

This commit is contained in:
thisgun
2021-01-06 09:59:33 +09:00
parent 242eed5b35
commit e5ab7456f2
9 changed files with 34 additions and 36 deletions

View File

@ -25,7 +25,7 @@ else {
$count_chk_wr_id = (isset($_POST['chk_wr_id']) && is_array($_POST['chk_wr_id'])) ? count($_POST['chk_wr_id']) : 0;
for ($i=0; $i<count($count_chk_wr_id); $i++) {
for ($i=0; $i<$count_chk_wr_id; $i++) {
$wr_id_val = isset($_POST['chk_wr_id'][$i]) ? preg_replace('/[^0-9]/', '', $_POST['chk_wr_id'][$i]) : 0;
$wr_id_list .= $comma . $wr_id_val;
$comma = ',';