From 9e11220c2b780ca3320deae7e91a272b84c88533 Mon Sep 17 00:00:00 2001 From: Derek Jones Date: Wed, 28 May 2008 23:46:28 +0000 Subject: added error suppression to fopen() in write_file() --- system/helpers/file_helper.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- cgit v1.2.3-24-g4f1b