Cast default status to integer on payment token update

This commit is contained in:
Denis Dvali 2021-06-29 14:50:57 +03:00 committed by GitHub
parent 13e88d5bb3
commit 030680ed7f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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,
)