Merge pull request #5031 from BFTrick/uk-counties

Returning False Instead of Empty Array for Countries Without States
This commit is contained in:
Mike Jolley 2014-03-04 11:49:34 +00:00
commit 56c1ce4bd9
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;
}