PHP8에서 Undefined array key "code" 오류 해결

This commit is contained in:
kagla
2022-02-23 16:47:33 +09:00
parent c1259af317
commit 36baa2a6ab

View File

@ -15,7 +15,7 @@ sql_query($sql);
$group_code = null;
$primary_code = null;
$count = count($_POST['code']);
$count = isset($_POST['code']) ? count($_POST['code']) : 0;
for ($i=0; $i<$count; $i++)
{