diff --git a/partials/landingpages/modules/setup.php b/partials/landingpages/modules/setup.php index 4fd0227..a6b3521 100644 --- a/partials/landingpages/modules/setup.php +++ b/partials/landingpages/modules/setup.php @@ -501,6 +501,18 @@ $renderField = function (array $field) use (&$current, $getNested, $driverOption !in_array($value, $knownUserValues, true))); $manualGroups = array_values(array_filter($allowedGroups, fn (string $value): bool => !in_array($value, $knownGroups, true))); -$hasDatabaseSection = array_key_exists('database', $setupSectionConfig) - ? !empty($setupSectionConfig['database']) - : $dbGroups !== []; -$hasCustomSection = $customSetupFields !== [] || $customSectionActions !== []; $showCustomDbConfig = !empty($current['use_separate_db']) && !in_array(strtolower(trim((string) ($current['use_separate_db'] ?? ''))), ['0', 'false', 'off', 'standard'], true); -$allowedSetupSections = ['general', 'access', 'cron']; -if ($hasDatabaseSection) { - $allowedSetupSections[] = 'database'; -} -if ($hasCustomSection) { - $allowedSetupSections[] = 'custom'; -} if (!in_array($currentSection, $allowedSetupSections, true)) { $currentSection = 'general'; }