Mahor rewrite:
[mailer.git] / inc / modules / guest / what-sponsor_reg.php
index a101f17ae3425e8aea0b11c905d276f06e5141f2..7060952e9d3e3b83ec031c873712d41ee5ad4fac 100644 (file)
@@ -186,15 +186,14 @@ if (isset($_POST['ok'])) {
                }
        }
        // Is the password long enough?
-        elseif (strlen($_POST['pass1']) < $_CONFIG['pass_len'])
+        elseif (strlen($_POST['pass1']) < getConfig('pass_len'))
        {
                // Too short!
                $FORM_ERRORS[] = SPONSOR_PASSWORD_TOO_SHORT;
        }
 
        // Check if he has accepted the terms&conditions
-       if (empty($_POST['terms']))
-       {
+       if (empty($_POST['terms'])) {
                // Homepage URL is empty
                $FORM_ERRORS[] = SPONSOR_TERMS_NOT_ACCEPTED;
        }
@@ -203,8 +202,7 @@ if (isset($_POST['ok'])) {
        if (count($FORM_ERRORS) > 0) unset($_POST['ok']);
 }
 
-if ((isset($_POST['ok'])) && (count($FORM_ERRORS) == 0))
-{
+if ((isset($_POST['ok'])) && (count($FORM_ERRORS) == 0)) {
        // Generate message array
        $MSGs = array(
                'failed' => SPONSOR_REGISTRATION_FAILED,