From 78de893e6a62885f106b8176aece16847c09eea2 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Sun, 26 Jul 2009 14:23:40 +0000 Subject: [PATCH] Another try to fix bigintval() problem, ticket #114 --- inc/modules/guest/what-register.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/modules/guest/what-register.php b/inc/modules/guest/what-register.php index ce00d37ae3..31192f0d35 100644 --- a/inc/modules/guest/what-register.php +++ b/inc/modules/guest/what-register.php @@ -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', ''); -- 2.39.5