Index: shipping/uc_quote/uc_quote.module
===================================================================
--- shipping/uc_quote/uc_quote.module	(revision 1361)
+++ shipping/uc_quote/uc_quote.module	(working copy)
@@ -1410,13 +1410,15 @@
   $fake_order = new stdClass();
   $fake_order->uid = $_POST['uid'];
   $fake_order->products = $products;
-  foreach ($_POST['details'] as $type => $address) {
-    foreach ($address as $key => $value) {
-      if ($key == 'country' AND $value == '') {
-        $value = variable_get('uc_store_country', 840);
+  if (is_array($_POST['details'])) {
+    foreach ($_POST['details'] as $type => $address) {
+      foreach ($address as $key => $value) {
+        if ($key == 'country' AND $value == '') {
+          $value = variable_get('uc_store_country', 840);
+        }
+        $field = $type .'_'. $key;
+        $fake_order->$field = $value;
       }
-      $field = $type .'_'. $key;
-      $fake_order->$field = $value;
     }
   }
   // Consider the total to be from products only, because line items are
