Index: uc_credit.module ========================================================= --- uc_credit.module (revision 1.5) +++ uc_credit.module Working Copy @@ -135,6 +135,7 @@ $cc_data = array( 'cc_number' => substr($data['cc_data']['cc_number'], -4), + 'cc_type' => check_plain($data['cc_data']['cc_type']), ); // Stuff the serialized and encrypted CC details into the array. @@ -236,6 +237,7 @@ // Otherwise, save only some limited, PCI compliant data. $cc_data = array( 'cc_number' => substr($arg1->payment_details['cc_number'], -4), + 'cc_type' => check_plain($arg1->payment_details['cc_type']), ); } @@ -765,7 +767,7 @@ '#type' => 'select', '#title' => t('Card type'), '#options' => $options, - '#default_value' => $order->payment_details['cc_type'], + '#default_value' => $order->payment_details['cc_type'] ? $order->payment_details['cc_type'] : t('Visa'), ); } @@ -1073,6 +1075,7 @@ else { $cc_data = array( 'cc_number' => substr($cache['cc_number'], -4), + 'cc_type' => check_plain($cache['cc_type']), ); }