PHP8 버전에서 경고 표시가 뜨는 코드 추가 수정

This commit is contained in:
thisgun
2021-01-09 17:19:31 +09:00
parent d80b1d3506
commit a2cf2747bb
7 changed files with 26 additions and 13 deletions

View File

@ -8,7 +8,7 @@ auth_check_menu($auth, $sub_menu, 'd');
check_admin_token();
$count = (isset($_POST['chk']) && is_array($_POST['chk'])) ? count($_POST['chk']) ? 0;
$count = (isset($_POST['chk']) && is_array($_POST['chk'])) ? count($_POST['chk']) : 0;
if(!$count)
alert('선택삭제 하실 항목을 하나이상 선택해 주세요.');