Quick Search:

Mode

Context

Displaying 3 lines of context. None | Less | More | Full

Other Diffs

Ignore

Blank Lines Whitespace:

Diff

1601
 
1699
 
1699
 
checkout_payment.php
_> 5252     $billto = $customer_default_address_id;
  5353   } else {
  5454 // verify the selected billing address
<> 55 -    $check_address_query = tep_db_query("select count(*) as total from " . TABLE_ADDRESS_BOOK . " where customers_id = '" . (int)$customer_id . "' and address_book_id = '" . (int)$billto . "'");
  56 -    $check_address = tep_db_fetch_array($check_address_query);
   55+    if ( (is_array($billto) && empty($billto)) || is_numeric($billto) ) {
   56+      $check_address_query = tep_db_query("select count(*) as total from " . TABLE_ADDRESS_BOOK . " where customers_id = '" . (int)$customer_id . "' and address_book_id = '" . (int)$billto . "'");
   57+      $check_address = tep_db_fetch_array($check_address_query);
5758 
<> 58 -    if ($check_address['total'] != '1') {
  59 -      $billto = $customer_default_address_id;
  60 -      if (tep_session_is_registered('payment')) tep_session_unregister('payment');
   59+      if ($check_address['total'] != '1') {
   60+        $billto = $customer_default_address_id;
   61+        if (tep_session_is_registered('payment')) tep_session_unregister('payment');
   62+      }
<_ 6163     }
  6264   }
  6365