summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--system/application/controllers/file.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/system/application/controllers/file.php b/system/application/controllers/file.php
index 7d9ca24ec..96165eb55 100644
--- a/system/application/controllers/file.php
+++ b/system/application/controllers/file.php
@@ -193,8 +193,7 @@ class File extends Controller {
header('Etag: "'.$etag.'"');
$fp = fopen($file,"r");
while (!feof($fp)) {
- $buff = fread($fp,4096);
- echo $buff;
+ echo fread($fp,4096);
}
fclose($fp);
}