Avoid undefined variable for items when calculating totals on new order.

This commit is contained in:
Scott Basgaard 2013-11-13 20:48:36 -05:00
parent f76a5edea8
commit 8996af0f42
1 changed files with 1 additions and 1 deletions

View File

@ -1182,7 +1182,7 @@ function woocommerce_calc_line_taxes() {
$postcode = strtoupper( esc_attr( $_POST['postcode'] ) ); $postcode = strtoupper( esc_attr( $_POST['postcode'] ) );
$city = sanitize_title( esc_attr( $_POST['city'] ) ); $city = sanitize_title( esc_attr( $_POST['city'] ) );
$items = $_POST['items']; $items = isset( $_POST['items'] ) ? $_POST['items'] : array();
$shipping = $_POST['shipping']; $shipping = $_POST['shipping'];
$item_tax = 0; $item_tax = 0;