Prevent arrays which fail the empty() check

This commit is contained in:
Mike Jolley 2012-04-25 10:27:46 +01:00
parent dc20a8f27e
commit a4ec7d04d3
1 changed files with 2 additions and 2 deletions

View File

@ -19,8 +19,8 @@ class WC_Tax {
if (!is_array($this->parsed_rates)) :
global $woocommerce;
$tax_rates = (array) get_option('woocommerce_tax_rates');
$local_tax_rates = (array) get_option('woocommerce_local_tax_rates');
$tax_rates = array_filter( (array) get_option('woocommerce_tax_rates') );
$local_tax_rates = array_filter( (array) get_option('woocommerce_local_tax_rates') );
$parsed_rates = array();
$flat_rates = array();