Fix notice when left blank

This commit is contained in:
Mike Jolley 2014-02-17 14:54:06 +00:00 committed by Coen Jacobs
parent d0e42aa8f0
commit 4d831d02ee
1 changed files with 1 additions and 1 deletions

View File

@ -633,7 +633,7 @@ class WC_Settings_Tax extends WC_Settings_Page {
// Sanitize + format
$country = strtoupper( wc_clean( $tax_rate_country[ $key ] ) );
$state = strtoupper( wc_clean( $tax_rate_state[ $key ] ) );
$rate = number_format( wc_clean( $tax_rate[ $key ] ), 4, '.', '' );
$rate = number_format( (double) wc_clean( $tax_rate[ $key ] ), 4, '.', '' );
$name = wc_clean( $tax_rate_name[ $key ] );
$priority = absint( wc_clean( $tax_rate_priority[ $key ] ) );
$compound = isset( $tax_rate_compound[ $key ] ) ? 1 : 0;