Check rates are populated

This commit is contained in:
Mike Jolley 2012-02-05 13:49:21 +00:00
parent 22ebc2d121
commit a03e3a977f
1 changed files with 2 additions and 2 deletions

View File

@ -26,7 +26,7 @@ class WC_Tax {
$flat_rates = array();
$index = 0;
foreach( $tax_rates as $rate ) :
if ($tax_rates) foreach( $tax_rates as $rate ) :
// Standard Rate?
if (!$rate['class']) $rate['class'] = '*';
@ -66,7 +66,7 @@ class WC_Tax {
endforeach;
foreach( $local_tax_rates as $rate ) :
if ($local_tax_rates) foreach( $local_tax_rates as $rate ) :
// Standard Rate?
if (!$rate['class']) $rate['class'] = '*';