Fix notice when left blank

This commit is contained in:
Mike Jolley 2014-02-17 14:54:06 +00:00
parent f9251084d9
commit 8c7996e5b1
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;