]> git.mxchange.org Git - mailer.git/commitdiff
Fix for register
authorRoland Häder <roland@mxchange.org>
Thu, 5 Nov 2009 17:40:18 +0000 (17:40 +0000)
committerRoland Häder <roland@mxchange.org>
Thu, 5 Nov 2009 17:40:18 +0000 (17:40 +0000)
inc/modules/guest/what-register.php

index 9065ccf701edaa5bc5d6800c9c54b79bdd00d78f..cec2ecc034f588d8c3fdbe278ed1f62185c1f926 100644 (file)
@@ -404,7 +404,7 @@ VALUES ('%s','%s','%s','%s','%s',%s,'%s','%s',%s, %s,%s,'%s',%s, %s,'%s','UNCONF
        }
 
        if ($shortPass === true) {
-               registerOutputFailedMessage('SHORT_PASS', ": ".getConfig('pass_len'));
+               registerOutputFailedMessage('SHORT_PASS', ': ' . getConfig('pass_len'));
        } // END - if
 
        if ($ipTimedOut === true) {
@@ -448,9 +448,12 @@ VALUES ('%s','%s','%s','%s','%s',%s,'%s','%s',%s, %s,%s,'%s',%s, %s,'%s','UNCONF
        $content['surname']   = SQL_ESCAPE(postRequestElement('surname'));
        $content['family']    = SQL_ESCAPE(postRequestElement('family'));
        $content['street_nr'] = SQL_ESCAPE(postRequestElement('street_nr'));
-       $content['zip']       = bigintval(postRequestElement('zip'));
+       $content['zip']       = '';
+       if (isPostRequestElementSet('zip')) {
+               $content['zip']       = bigintval(postRequestElement('zip'));
+       } // END - if
        $content['city']      = SQL_ESCAPE(postRequestElement('city'));
-       $content['email']      = SQL_ESCAPE(postRequestElement('email'));
+       $content['email']     = SQL_ESCAPE(postRequestElement('email'));
 
        // Prepare country selection box
        $OUT  = "<select name=\"country_code\" class=\"guest_select\" size=\"1\">\n";