This commit is contained in:
2026-03-05 00:11:40 +01:00
parent 8a25fef2c3
commit 2d6943302c

View File

@@ -39,10 +39,11 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
continue;
}
$type = (string)($field['type'] ?? 'text');
$value = $_POST[$name] ?? null;
$postKey = str_replace('.', '_', $name);
$value = $_POST[$postKey] ?? null;
if ($type === 'checkbox') {
$value = isset($_POST[$name]) ? '1' : '0';
$value = isset($_POST[$postKey]) ? '1' : '0';
}
if (is_array($value)) {
continue;