Index: branches/5.2.x/units/taxes/taxes_tag_processor.php =================================================================== diff -u -N -r16516 -r16693 --- branches/5.2.x/units/taxes/taxes_tag_processor.php (.../taxes_tag_processor.php) (revision 16516) +++ branches/5.2.x/units/taxes/taxes_tag_processor.php (.../taxes_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); } @@ -90,7 +90,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); } } @@ -270,4 +270,4 @@ return $table_name; } -} \ No newline at end of file +}