Another try to fix bigintval() problem, ticket #114
authorRoland Häder <roland@mxchange.org>
Sun, 26 Jul 2009 14:23:40 +0000 (14:23 +0000)
committerRoland Häder <roland@mxchange.org>
Sun, 26 Jul 2009 14:23:40 +0000 (14:23 +0000)
inc/modules/guest/what-register.php

index ce00d37..31192f0 100644 (file)
@@ -452,7 +452,7 @@ VALUES ('%s','%s','%s','%s','%s',%s,'%s','%s',%s, %s,%s,'%s',%s, %s,'%s','UNCONF
        define('__FAMILY',  SQL_ESCAPE(REQUEST_POST('family')));
        define('__STREET',  SQL_ESCAPE(REQUEST_POST('street_nr')));
        define('__COUNTRY', SQL_ESCAPE(REQUEST_POST('cntry')));
-       if (REQUEST_ISSET_POST('zip')) {
+       if ((REQUEST_ISSET_POST('zip')) && (REQUEST_POST('zip') != '')) {
                define('__ZIP', bigintval(REQUEST_POST('zip')));
        } else {
                define('__ZIP', '');