From 11380e213c43cf4e32dc8baa1a670ca45e175144 Mon Sep 17 00:00:00 2001 From: schrom01 Date: Tue, 26 Sep 2023 14:56:58 +0200 Subject: [PATCH] Fix Problem legalForm --- submit.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/submit.php b/submit.php index 81d4f79..bc9326e 100644 --- a/submit.php +++ b/submit.php @@ -27,8 +27,8 @@ if(isset($_POST['geloeschteRechtseinheiten'])) { } $rechtsformen = array(); -if (isset($_POST['rechtsform']) && is_array($_POST['rechtsform']) && count($_POST['rechtsform']) > 0) { - $rechtsformen = $_POST['rechtsform']; +if (isset($_POST['rechtsformen']) && is_array($_POST['rechtsformen']) && count($_POST['rechtsformen']) > 0) { + $rechtsformen = $_POST['rechtsformen']; } else { $legalFormArray = json_decode(sendAPILegalFormRequest($username, $password), true); foreach ($legalFormArray as $rechtsform) {