Fix potential notice
This commit is contained in:
parent
2809986fcf
commit
03cf7fa572
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue