Index: branches/5.2.x/units/helpers/frny_currency_rates.php =================================================================== diff -u -N -r16516 -r16601 --- branches/5.2.x/units/helpers/frny_currency_rates.php (.../frny_currency_rates.php) (revision 16516) +++ branches/5.2.x/units/helpers/frny_currency_rates.php (.../frny_currency_rates.php) (revision 16601) @@ -1,6 +1,6 @@ Application->recallObject('CurlHelper'); + $curl_helper->followLocation = true; for($i = 0; $i < 10; $i++) { $time = adodb_mktime() - $i * 3600 * 24; $source_file = sprintf($this->RateSource, adodb_date('Y-m-d', $time)); $xml = $curl_helper->Send($source_file); + if ( !$curl_helper->isGoodResponseCode() || strlen($xml) == 0 ) { + continue; + } + $xml_parser = xml_parser_create(); xml_parse_into_struct($xml_parser, $xml, $struct, $index); foreach($struct as $element)