Fix potential notice

This commit is contained in:
Mike Jolley 2015-02-03 14:57:04 +00:00
parent 2809986fcf
commit 03cf7fa572
1 changed files with 3 additions and 1 deletions

View File

@ -292,9 +292,11 @@ class WC_Form_Handler {
if ( isset( $available_gateways[ $payment_method ] ) ) {
$payment_method_title = $available_gateways[ $payment_method ]->get_title();
} else {
$payment_method_title = '';
}
update_post_meta( $order_id, '_payment_method_title', $payment_method_title);
update_post_meta( $order_id, '_payment_method_title', $payment_method_title );
// Validate
$available_gateways[ $payment_method ]->validate_fields();