Incomplete 'booking' extension added, fixes for registration and refback list
[mailer.git] / inc / modules / guest / what-register.php
index 542db3ef969f75038831abe7f647f9f1d265d874..c54d32d7ce383576499ccb68dec177e190855cf3 100644 (file)
@@ -428,7 +428,11 @@ VALUES ('%s','%s','%s','%s','%s',%s,'%s','%s',%s, %s,%s,'%s',%s, %s,'%s','UNCONF
        define('__FAMILY',  SQL_ESCAPE($_POST['family_name']));
        define('__STREET',  SQL_ESCAPE($_POST['street_nr']));
        define('__COUNTRY', SQL_ESCAPE($_POST['cntry']));
-       define('__ZIP',     bigintval($_POST['zip']));
+       if (!empty($_POST['zip'])) {
+               define('__ZIP', bigintval($_POST['zip']));
+       } else {
+               define('__ZIP', "");
+       }
        define('__CITY',    SQL_ESCAPE($_POST['city']));
        define('__ADDY',    SQL_ESCAPE($_POST['addy']));