Error fixed in what-order.php
authorRoland Häder <roland@mxchange.org>
Fri, 19 Dec 2008 16:48:36 +0000 (16:48 +0000)
committerRoland Häder <roland@mxchange.org>
Fri, 19 Dec 2008 16:48:36 +0000 (16:48 +0000)
inc/databases.php
inc/modules/member/what-order.php

index c370b10..25dfe5f 100644 (file)
@@ -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);
index 7af82df..2d0917b 100644 (file)
@@ -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