Array init code was wrong

This commit is contained in:
Mike Jolley 2019-03-05 14:51:58 +00:00
parent f707eeda3e
commit 46bdad07e9
1 changed files with 1 additions and 1 deletions

View File

@ -1830,7 +1830,7 @@ class WC_AJAX {
// Prepare line items which we are refunding.
$line_items = array();
$item_ids = array_unique( array_merge( array_keys( $line_item_qtys, $line_item_totals, true ) ) );
$item_ids = array_unique( array_merge( array_keys( $line_item_qtys ), array_keys( $line_item_totals ) ) );
foreach ( $item_ids as $item_id ) {
$line_items[ $item_id ] = array(