Fix get totals method

This commit is contained in:
Mike Jolley 2017-08-18 17:18:41 +01:00
parent b0f190fa1d
commit 3d002f842f
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}
/**