X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;ds=sidebyside;f=gl%2Fincludes%2Fdb%2Fgl_db_rates.inc;h=88167b2c511818b9c2a60b79b42e46c31ea85634;hb=1607637226fffca2851963c3a0b54a937b487dc0;hp=d954a7d6165f81d466fee51844c9db218deb01c5;hpb=1db01112d160c1e3c9a6c48cbe3a2b829c102b2e;p=fa-stable.git diff --git a/gl/includes/db/gl_db_rates.inc b/gl/includes/db/gl_db_rates.inc index d954a7d6..88167b2c 100644 --- a/gl/includes/db/gl_db_rates.inc +++ b/gl/includes/db/gl_db_rates.inc @@ -112,7 +112,8 @@ function get_extern_rate($curr_b, $provider = 'ECB', $date) curl_setopt ($ch, CURLOPT_COOKIEJAR, "cookie.txt"); curl_setopt ($ch, CURLOPT_HEADER, 0); curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1); - curl_setopt ($ch, CURLOPT_FOLLOWLOCATION, 1); + // prevent warning while save_mode/open_basedir on (redireciton doesn't occur at least on ECB page) + @curl_setopt ($ch, CURLOPT_FOLLOWLOCATION, 1); curl_setopt ($ch, CURLOPT_TIMEOUT, 3); $contents = curl_exec ($ch); curl_close($ch);