summaryrefslogtreecommitdiffstats
path: root/system/libraries
diff options
context:
space:
mode:
Diffstat (limited to 'system/libraries')
-rw-r--r--system/libraries/Upload.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/system/libraries/Upload.php b/system/libraries/Upload.php
index d8a8f69a7..dc3fd4a12 100644
--- a/system/libraries/Upload.php
+++ b/system/libraries/Upload.php
@@ -708,8 +708,8 @@ class CI_Upload {
{
return FALSE;
}
-
- if ( ! $data = file_get_contents($file))
+
+ if (($data = @file_get_contents($file)) !== FALSE)
{
return FALSE;
}