From d5196b1ffea1b731ef3b2eeb59a96fdbd4f97b5f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Thu, 5 Nov 2009 17:40:18 +0000 Subject: [PATCH] Fix for register --- inc/modules/guest/what-register.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/inc/modules/guest/what-register.php b/inc/modules/guest/what-register.php index 9065ccf701..cec2ecc034 100644 --- a/inc/modules/guest/what-register.php +++ b/inc/modules/guest/what-register.php @@ -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 = "