Fix Problem legalForm

This commit is contained in:
schrom01 2023-09-26 14:56:58 +02:00
parent 0de1f0dab4
commit 11380e213c
1 changed files with 2 additions and 2 deletions

View File

@ -27,8 +27,8 @@ if(isset($_POST['geloeschteRechtseinheiten'])) {
} }
$rechtsformen = array(); $rechtsformen = array();
if (isset($_POST['rechtsform']) && is_array($_POST['rechtsform']) && count($_POST['rechtsform']) > 0) { if (isset($_POST['rechtsformen']) && is_array($_POST['rechtsformen']) && count($_POST['rechtsformen']) > 0) {
$rechtsformen = $_POST['rechtsform']; $rechtsformen = $_POST['rechtsformen'];
} else { } else {
$legalFormArray = json_decode(sendAPILegalFormRequest($username, $password), true); $legalFormArray = json_decode(sendAPILegalFormRequest($username, $password), true);
foreach ($legalFormArray as $rechtsform) { foreach ($legalFormArray as $rechtsform) {