Index: branches/5.0.x/core/units/helpers/country_states_helper.php =================================================================== diff -u -r12306 -r12511 --- branches/5.0.x/core/units/helpers/country_states_helper.php (.../country_states_helper.php) (revision 12306) +++ branches/5.0.x/core/units/helpers/country_states_helper.php (.../country_states_helper.php) (revision 12511) @@ -1,6 +1,6 @@ Application->GetVar('m_lang'), $this->Conn->qstr($country_code), $this->Conn->qstr($state_name) ); + $sql = sprintf($sql, (int)$this->Application->GetVar('m_lang'), $this->Conn->qstr($country_code), $this->Conn->qstr($state_name) ); + return $this->Conn->GetOne($sql); }