Skip to content

Commit a69f077

Browse files
committed
Fix missing shipping property
1 parent 908f786 commit a69f077

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

classes/class-wc-connect-taxjar-integration.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1308,7 +1308,7 @@ private function get_itemized_tax_rates( $taxes, $taxjar_taxes, $options ) {
13081308
}
13091309

13101310
// Add shipping tax rate.
1311-
$_tax_rates = (array) $taxjar_taxes->breakdown->shipping;
1311+
$_tax_rates = isset( $taxjar_taxes->breakdown->shipping ) ? (array) $taxjar_taxes->breakdown->shipping : array();
13121312
$priority = 1;
13131313
foreach ( $_tax_rates as $tax_rate_name => $tax_rate ) {
13141314
if ( 'combined_tax_rate' === $tax_rate_name || false === strpos( $tax_rate_name, '_tax_rate' ) ) {

0 commit comments

Comments
 (0)