From 03f5cd489d4c22e82307ad909884e549d5739369 Mon Sep 17 00:00:00 2001 From: Anonymous Contributor Date: Wed, 23 Aug 2023 18:16:35 +0200 Subject: [PATCH] Remove useless double check of input lengths --- pages/profile.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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) {