summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrey Andreev <narf@bofh.bg>2012-06-07 14:51:58 +0200
committerAndrey Andreev <narf@bofh.bg>2012-06-07 14:51:58 +0200
commit596c51cdca8d623c96243a81bc5212d34f820a97 (patch)
tree6ec2236d9437f5db5370c5808133d88d7509aa3e
parentd09ff35e8c4b7cae6313cc40ec0e6b57b9f52106 (diff)
Suppress errors from file_get_contents() in read_file()
-rw-r--r--system/helpers/file_helper.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/helpers/file_helper.php b/system/helpers/file_helper.php
index b717aaa0d..be616f62d 100644
--- a/system/helpers/file_helper.php
+++ b/system/helpers/file_helper.php
@@ -52,7 +52,7 @@ if ( ! function_exists('read_file'))
*/
function read_file($file)
{
- return file_get_contents($file);
+ return @file_get_contents($file);
}
}