From 2d6943302c581073a9e2ee0425df53ed4fb47879 Mon Sep 17 00:00:00 2001 From: Lars Gebhardt-Kusche Date: Thu, 5 Mar 2026 00:11:40 +0100 Subject: [PATCH] asd --- partials/landingpages/modules/setup.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/partials/landingpages/modules/setup.php b/partials/landingpages/modules/setup.php index acb2c59..043f572 100644 --- a/partials/landingpages/modules/setup.php +++ b/partials/landingpages/modules/setup.php @@ -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;