summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Bruederli <bruederli@kolabsys.com>2013-04-25 07:10:53 (GMT)
committerThomas Bruederli <bruederli@kolabsys.com>2013-04-25 07:10:53 (GMT)
commit4ef39fbdc17aca11852661592f3070cbbd5282b2 (patch)
tree98d2b5ba7badc20005b32e6dbdc1501d4d825dd8
parent5dee600ef7f60eae11c06b3c04e88a4582bcfdd6 (diff)
downloadkolab-freebusy-4ef39fbdc17aca11852661592f3070cbbd5282b2.tar.gz
Suppress PHP warnings when file_get_contents failed. The result is logged further below
-rw-r--r--lib/Kolab/FreeBusy/SourceURL.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Kolab/FreeBusy/SourceURL.php b/lib/Kolab/FreeBusy/SourceURL.php
index e838640..d62a520 100644
--- a/lib/Kolab/FreeBusy/SourceURL.php
+++ b/lib/Kolab/FreeBusy/SourceURL.php
@@ -32,7 +32,7 @@ class SourceURL extends Source
$config['url'] = self::composeUrl($config); // re-compose url without user:pass
}
- $data = file_get_contents($config['url'], false, $context);
+ $data = @file_get_contents($config['url'], false, $context);
// log this...
Logger::get('url')->addInfo("Fetching data from " . $config['url'] . ": " . ($data ? 'OK' : 'FAILED'));