diff --git a/system/storage.php b/system/storage.php index ab3ab5ce..45a53ce1 100644 --- a/system/storage.php +++ b/system/storage.php @@ -286,7 +286,7 @@ function write_storage_file($data, $options=array()) { } } - if(file_exists($upload_filename) && in_array($mode, array("fake", "w"))) { + if(file_exists($upload_filename) && in_array($mode, array("fake"))) { if(!array_key_empty("filename", $options)) { $result = $upload_filename; } else {