From 5c1fad10a9c939ff5546c3c1e2e6556718f03e81 Mon Sep 17 00:00:00 2001 From: Tobias Krais Date: Tue, 18 Apr 2023 13:32:06 +0200 Subject: [PATCH] rexstan enhancements --- pages/settings.settings.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/settings.settings.php b/pages/settings.settings.php index 6824792..9638cd3 100644 --- a/pages/settings.settings.php +++ b/pages/settings.settings.php @@ -150,7 +150,7 @@ $link_ids = filter_input_array(INPUT_POST, ['REX_INPUT_LINK' => ['filter' => FILTER_VALIDATE_INT, 'flags' => FILTER_REQUIRE_ARRAY]]); $link_names = filter_input_array(INPUT_POST, ['REX_LINK_NAME' => ['flags' => FILTER_REQUIRE_ARRAY]]); - $settings['link'] = !is_array($link_ids) ? 0 : $link_ids['REX_INPUT_LINK'][1]; + $settings['link'] = is_array($link_ids['REX_INPUT_LINK']) ? $link_ids['REX_INPUT_LINK'][1] : 0; $settings['linkname'] = trim($link_names['REX_LINK_NAME'][1]); $settings['link_abmeldung'] = !is_array($link_ids) ? 0 : $link_ids['REX_INPUT_LINK'][2]; $settings['linkname_abmeldung'] = trim($link_names['REX_LINK_NAME'][2]);