summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorandi <andi@splitbrain.org>2005-05-11 19:51:44 +0200
committerandi <andi@splitbrain.org>2005-05-11 19:51:44 +0200
commit6e57b36bff763185fe59f5611d09e449b0a8d426 (patch)
treedde467056835e02e9e9a8bce750012c2d643e6b5
parent8d9ff883ca606037f8992f9e1ba8aab94fae643a (diff)
downloadrpg-6e57b36bff763185fe59f5611d09e449b0a8d426.tar.gz
rpg-6e57b36bff763185fe59f5611d09e449b0a8d426.tar.bz2
fix for fetch.php
there is no need to close the filehandle after calling fpassthru which does close the handle itself darcs-hash:20050511175144-9977f-59252300c856d170b28581cdc46646ed68cd5acc.gz
-rw-r--r--fetch.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/fetch.php b/fetch.php
index daf03f293..3fa8777f1 100644
--- a/fetch.php
+++ b/fetch.php
@@ -81,8 +81,7 @@
$fp = @fopen($FILE,"rb");
if($fp){
- fpassthru($fp);
- fclose($fp);
+ fpassthru($fp); //does a close itself
}else{
header("HTTP/1.0 500 Internal Server Error");
print "Could not read $FILE - bad permissions?";