fix warning in some versions of PHP

This commit is contained in:
Ron Rennick 2019-02-21 15:59:09 -04:00
parent e6b0f3476c
commit 0a4d98fb9f
1 changed files with 1 additions and 1 deletions

View File

@ -161,7 +161,7 @@ class WC_Admin_Order extends WC_Order {
if ( $tax_data ) {
foreach ( $order_taxes as $tax_item ) {
$tax_item_id = $tax_item->get_rate_id();
$tax_item_total = isset( $tax_data['total'][ $tax_item_id ] ) ? $tax_data['total'][ $tax_item_id ] : '';
$tax_item_total = isset( $tax_data['total'][ $tax_item_id ] ) ? $tax_data['total'][ $tax_item_id ] : 0;
$refunded = $this->get_tax_refunded_for_item( $item_id, $tax_item_id, 'shipping' );
if ( $refunded ) {
$total_shipping_tax_amount += $tax_item_total - $refunded;