commit | 9e11220c2b780ca3320deae7e91a272b84c88533 | [log] [tgz] |
---|---|---|
author | Derek Jones <derek.jones@ellislab.com> | Wed May 28 23:46:28 2008 +0000 |
committer | Derek Jones <derek.jones@ellislab.com> | Wed May 28 23:46:28 2008 +0000 |
tree | cccd6678639287a0073833ef141289a717257a23 | |
parent | 95d06605c68f9b2073b0a01e7fa81aad4aa0e755 [diff] |
added error suppression to fopen() in write_file()
diff --git a/system/helpers/file_helper.php b/system/helpers/file_helper.php index 0d33fe3..86c5c09 100644 --- a/system/helpers/file_helper.php +++ b/system/helpers/file_helper.php
@@ -87,7 +87,7 @@ { function write_file($path, $data, $mode = FOPEN_WRITE_CREATE_DESTRUCTIVE) { - if ( ! $fp = fopen($path, $mode)) + if ( ! $fp = @fopen($path, $mode)) { return FALSE; }