diff --git a/pages/profile.php b/pages/profile.php index 8f511d7..3649a72 100644 --- a/pages/profile.php +++ b/pages/profile.php @@ -32,7 +32,7 @@ )); if($validator->isValid($_POST)) { - if(isset($_POST['formInputFeldVorname']) && $_POST['formInputFeldVorname'] != "") { + if(isset($_POST['formInputFeldVorname'])) { $NewFirstName = trim($_POST['formInputFeldVorname']); if($NewFirstName != "" && $_SESSION['FIRSTNAME'] != $NewFirstName) { @@ -44,7 +44,7 @@ } } - if(isset($_POST['formInputFeldNachname']) && $_POST['formInputFeldNachname'] != "") { + if(isset($_POST['formInputFeldNachname'])) { $NewLastName = trim($_POST['formInputFeldNachname']); if($NewLastName != "" && $_SESSION['LASTNAME'] != $NewLastName) { @@ -56,7 +56,7 @@ } } - if(isset($_POST['formInputFeldEMail']) && $_POST['formInputFeldEMail'] != "") { + if(isset($_POST['formInputFeldEMail'])) { $NewEMail = trim($_POST['formInputFeldEMail']); if($NewEMail != "" && $_SESSION['EMAIL'] != $NewEMail) {