From 3d002f842f2b517ea61c7c9446661092bc46656b Mon Sep 17 00:00:00 2001 From: Mike Jolley Date: Fri, 18 Aug 2017 17:18:41 +0100 Subject: [PATCH] Fix get totals method --- includes/class-wc-cart.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/class-wc-cart.php b/includes/class-wc-cart.php index 7137dab4d01..2c4038cbe06 100644 --- a/includes/class-wc-cart.php +++ b/includes/class-wc-cart.php @@ -180,7 +180,7 @@ class WC_Cart extends WC_Legacy_Cart { * @return array */ public function get_totals() { - return (array) empty( $this->totals ) ? $this->default_totals : $this->totals; + return empty( $this->totals ) ? $this->default_totals : $this->totals; } /**