1
0
Fork 0

Remove useless double check of input lengths

master
Anonymous Contributor 2023-08-23 18:16:35 +02:00
parent 7b0539b96f
commit 03f5cd489d
1 changed files with 3 additions and 3 deletions

View File

@ -32,7 +32,7 @@
)); ));
if($validator->isValid($_POST)) { if($validator->isValid($_POST)) {
if(isset($_POST['formInputFeldVorname']) && $_POST['formInputFeldVorname'] != "") { if(isset($_POST['formInputFeldVorname'])) {
$NewFirstName = trim($_POST['formInputFeldVorname']); $NewFirstName = trim($_POST['formInputFeldVorname']);
if($NewFirstName != "" && $_SESSION['FIRSTNAME'] != $NewFirstName) { if($NewFirstName != "" && $_SESSION['FIRSTNAME'] != $NewFirstName) {
@ -44,7 +44,7 @@
} }
} }
if(isset($_POST['formInputFeldNachname']) && $_POST['formInputFeldNachname'] != "") { if(isset($_POST['formInputFeldNachname'])) {
$NewLastName = trim($_POST['formInputFeldNachname']); $NewLastName = trim($_POST['formInputFeldNachname']);
if($NewLastName != "" && $_SESSION['LASTNAME'] != $NewLastName) { if($NewLastName != "" && $_SESSION['LASTNAME'] != $NewLastName) {
@ -56,7 +56,7 @@
} }
} }
if(isset($_POST['formInputFeldEMail']) && $_POST['formInputFeldEMail'] != "") { if(isset($_POST['formInputFeldEMail'])) {
$NewEMail = trim($_POST['formInputFeldEMail']); $NewEMail = trim($_POST['formInputFeldEMail']);
if($NewEMail != "" && $_SESSION['EMAIL'] != $NewEMail) { if($NewEMail != "" && $_SESSION['EMAIL'] != $NewEMail) {