Index: branches/5.2.x/units/zones/zones_tag_processor.php =================================================================== diff -u -N -r16516 -r16693 --- branches/5.2.x/units/zones/zones_tag_processor.php (.../zones_tag_processor.php) (revision 16516) +++ branches/5.2.x/units/zones/zones_tag_processor.php (.../zones_tag_processor.php) (revision 16693) @@ -1,6 +1,6 @@ getCountriesWithStates(); if ($selected_country_id && !array_key_exists($selected_country_id, $has_states)) { - list ($selected_country_id, ) = each($has_states); + $selected_country_id = key($has_states); $this->Application->SetVar('CountrySelector', $selected_country_id); } @@ -89,7 +89,7 @@ $this->Application->SetVar('CountrySelector', $selected_country_id); } else { - list ($selected_country_id, ) = each($has_states); + $selected_country_id = key($has_states); $this->Application->SetVar('CountrySelector', $selected_country_id); } } @@ -269,4 +269,4 @@ return $table_name; } -} \ No newline at end of file +}