Remove useless double check of input lengths
parent
7b0539b96f
commit
03f5cd489d
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue