Merge pull request #16997 from woocommerce/fix/cart_contents-is-array

Treat values in cart_contents hash as arrays instead of objects
This commit is contained in:
Mike Jolley 2017-10-02 14:58:13 +01:00 committed by GitHub
commit 68f75e9395
1 changed files with 1 additions and 1 deletions

View File

@ -290,7 +290,7 @@ abstract class WC_Legacy_Cart {
$cart_item_key = $values['key'];
$cart_item = $this->cart_contents[ $cart_item_key ];
return $cart_item->get_line_total();
return $cart_item['line_total'];
}
/**