X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fmodules%2Fguest%2Fwhat-sponsor_reg.php;h=ce88fd80fb1841a38684cf8150d5624a57526a78;hp=86f7f0b48b80e314c8efa99a64a99c57f0bf8c52;hb=07612d2debcc78a93678db0deed050d82df432f1;hpb=11dea7bfe10a659183665aaa0a6cf08b5da66783 diff --git a/inc/modules/guest/what-sponsor_reg.php b/inc/modules/guest/what-sponsor_reg.php index 86f7f0b48b..ce88fd80fb 100644 --- a/inc/modules/guest/what-sponsor_reg.php +++ b/inc/modules/guest/what-sponsor_reg.php @@ -166,17 +166,17 @@ if (isFormSent()) { } // Did he enter his password twice? - if (((!REQUEST_ISSET_POST(('pass1'))) || (!REQUEST_ISSET_POST(('pass2')))) || ((REQUEST_POST('pass1') != REQUEST_POST('pass2')) && (REQUEST_ISSET_POST(('pass1'))) && (REQUEST_ISSET_POST(('pass2'))))) { - if ((REQUEST_POST('pass1') != REQUEST_POST('pass2')) && (REQUEST_ISSET_POST(('pass1'))) && (REQUEST_ISSET_POST(('pass2')))) { + if (((!REQUEST_ISSET_POST('pass1')) || (!REQUEST_ISSET_POST('pass2'))) || ((REQUEST_POST('pass1') != REQUEST_POST('pass2')) && (REQUEST_ISSET_POST('pass1')) && (REQUEST_ISSET_POST('pass2')))) { + if ((REQUEST_POST('pass1') != REQUEST_POST('pass2')) && (REQUEST_ISSET_POST('pass1')) && (REQUEST_ISSET_POST('pass2'))) { // Passwords missmatch $FORM_ERRORS[] = getMessage('SPONSOR_PASSWORDS_MISMATCH'); } else { - if (!REQUEST_ISSET_POST(('pass1'))) { + if (!REQUEST_ISSET_POST('pass1')) { // Password 1 is empty $FORM_ERRORS[] = getMessage('SPONSOR_PASSWORD1_EMPTY'); } - if (!REQUEST_ISSET_POST(('pass2'))) { + if (!REQUEST_ISSET_POST('pass2')) { // Password 2 is empty $FORM_ERRORS[] = getMessage('SPONSOR_PASSWORD2_EMPTY'); } @@ -321,19 +321,19 @@ ORDER BY pay_name", __FILE__, __LINE__); // Check for gender selection switch (REQUEST_POST('gender')) { - case "M": // Male + case 'M': // Male define('__GENDER_M' , ' selected="selected"'); define('__GENDER_F' , ''); define('__GENDER_C' , ''); break; - case "F": // Female + case 'F': // Female define('__GENDER_M' , ''); define('__GENDER_F' , ' selected="selected"'); define('__GENDER_C' , ''); break; - case "C": // Company + case 'C': // Company define('__GENDER_M' , ''); define('__GENDER_F' , ''); define('__GENDER_C' , ' selected="selected"');