returning false instead of array for countries without states

This commit is contained in:
Patrick Rauland 2014-03-03 16:04:00 -08:00
parent 48ebfae145
commit f78482dd6e
1 changed files with 1 additions and 1 deletions

View File

@ -547,7 +547,7 @@ class WC_Countries {
* @return array of states
*/
public function get_states( $cc ) {
return ( isset( $this->states[ $cc ] ) ) ? $this->states[ $cc ] : array();
return ( isset( $this->states[ $cc ] ) ) ? $this->states[ $cc ] : false;
}