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 c370b1068940f2ac1b13e098c0a44708f6856f01..25dfe5fedef8b653f3ea7a7d90d206685cd8110c 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 7af82df4464c7888d41a8b8c72ef202b72814c86..2d0917b5035147cef43e5a29e899345ca25244c5 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