returning false instead of array for countries without states
This commit is contained in:
parent
48ebfae145
commit
f78482dd6e
|
@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue