woothemes/woocommerce — pull request #5587 by claudiosmweb (2014-05-28 20:07:24+00:00)
Title: Stop error notices in shipping calculator

When load the cart page the following errors appear:

```
Notice: Array to string conversion in /var/www/woocommerce-dev/wp-includes/formatting.php on line 584

Array

Notice: Array to string conversion in /var/www/woocommerce-dev/wp-includes/formatting.php on line 584

Array

Notice: Array to string conversion in /var/www/woocommerce-dev/wp-includes/formatting.php on line 584

Array

Notice: Array to string conversion in /var/www/woocommerce-dev/wp-includes/formatting.php on line 584

Array

....
```

This because the `WC()->customer->get_shipping_country()` is empty: https://github.com/woothemes/woocommerce/blob/master/templates/cart/shipping-calculator.php#L38-L41

To maintain the same behavior we had before we need to test whether this coming empty.
Besides always returns an array to maintain the consistency of the method.