Cast default status to integer on payment token update
This commit is contained in:
parent
13e88d5bb3
commit
030680ed7f
|
@ -362,7 +362,7 @@ class WC_Payment_Token_Data_Store extends WC_Data_Store_WP implements WC_Payment
|
|||
global $wpdb;
|
||||
$wpdb->update(
|
||||
$wpdb->prefix . 'woocommerce_payment_tokens',
|
||||
array( 'is_default' => $status ),
|
||||
array( 'is_default' => (int) $status ),
|
||||
array(
|
||||
'token_id' => $token_id,
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue