Index: branches/5.2.x/units/helpers/bank_lv_currency_rates.php =================================================================== diff -u -N -r16516 -r16601 --- branches/5.2.x/units/helpers/bank_lv_currency_rates.php (.../bank_lv_currency_rates.php) (revision 16516) +++ branches/5.2.x/units/helpers/bank_lv_currency_rates.php (.../bank_lv_currency_rates.php) (revision 16601) @@ -1,6 +1,6 @@ Application->recallObject('CurlHelper'); + $curl_helper->followLocation = true; $xml = $curl_helper->Send($this->RateSource); + if ( !$curl_helper->isGoodResponseCode() || strlen($xml) == 0 ) { + return; + } + xml_parse_into_struct($xml_parser, $xml, $struct, $index); $data_res = Array(); $currency = '';