From 591fe1a84246662bd9bc568c6ebb311b110e9283 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Fri, 19 Dec 2008 16:48:36 +0000 Subject: [PATCH] Error fixed in what-order.php --- inc/databases.php | 2 +- inc/modules/member/what-order.php | 15 +++++++++++---- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/inc/databases.php b/inc/databases.php index c370b10689..25dfe5fede 100644 --- a/inc/databases.php +++ b/inc/databases.php @@ -115,7 +115,7 @@ define('USAGE_BASE', "usage"); define('SERVER_URL', "http://www.mxchange.org"); // Current SVN revision -define('CURR_SVN_REVISION', "665"); +define('CURR_SVN_REVISION', "666"); // Take a prime number which is long (if you know a longer one please try it out!) define('_PRIME', 591623); diff --git a/inc/modules/member/what-order.php b/inc/modules/member/what-order.php index 7af82df446..2d0917b503 100644 --- a/inc/modules/member/what-order.php +++ b/inc/modules/member/what-order.php @@ -676,10 +676,17 @@ LIMIT 1", array(bigintval($ucat)), __FILE__, __LINE__); // Do we want ZIP code or not? if ((getConfig('order_multi_page') == "Y") || (IS_ADMIN())) { // Yes - $content = array( - 'zip' => bigintval($_POST['zip']), - 'add' => $ADD - ); + if ($_POST['zip'] > 0) { + $content = array( + 'zip' => bigintval($_POST['zip']), + 'add' => $ADD + ); + } else { + $content = array( + 'zip' => "", + 'add' => $ADD + ); + } define('MEMBER_ZIP_CONTENT', LOAD_TEMPLATE("member_order-zip1", true, $content)); } else { // No -- 2.39.5