summaryrefslogtreecommitdiffstats
path: root/system/helpers
diff options
context:
space:
mode:
authorDerek Jones <derek.jones@ellislab.com>2008-05-29 01:46:28 +0200
committerDerek Jones <derek.jones@ellislab.com>2008-05-29 01:46:28 +0200
commit9e11220c2b780ca3320deae7e91a272b84c88533 (patch)
treecccd6678639287a0073833ef141289a717257a23 /system/helpers
parent95d06605c68f9b2073b0a01e7fa81aad4aa0e755 (diff)
added error suppression to fopen() in write_file()
Diffstat (limited to 'system/helpers')
-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 0d33fe3f2..86c5c09db 100644
--- a/system/helpers/file_helper.php
+++ b/system/helpers/file_helper.php
@@ -87,7 +87,7 @@ if ( ! function_exists('write_file'))
{
function write_file($path, $data, $mode = FOPEN_WRITE_CREATE_DESTRUCTIVE)
{
- if ( ! $fp = fopen($path, $mode))
+ if ( ! $fp = @fopen($path, $mode))
{
return FALSE;
}