From: Chris Date: Tue, 29 Jan 2013 05:30:07 +0000 (+0800) Subject: I18n.php X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=commitdiff_plain;h=efb997abcef7ea76f1f02f8ca8c21736331febd9 I18n.php --- diff --git a/I18n.php b/I18n.php index 403b29e0..2ac66169 100644 --- a/I18n.php +++ b/I18n.php @@ -287,7 +287,7 @@ class Pman_Core_I18n extends Pman } $target = ini_get('session.save_path').'/eurofxref-daily.xml'; if (!file_exists($target) || filemtime($target) < (time() - 60*60*24)) { - $f = file_get_contents('http://www.ecb.europa.eu/stats/eurofxref/eurofxref-daily.xml'); + $f = @file_get_contents('http://www.ecb.europa.eu/stats/eurofxref/eurofxref-daily.xml'); if (!strlen($f)) { return false; }