diff options
author | andi <andi@splitbrain.org> | 2005-05-11 19:51:44 +0200 |
---|---|---|
committer | andi <andi@splitbrain.org> | 2005-05-11 19:51:44 +0200 |
commit | 6e57b36bff763185fe59f5611d09e449b0a8d426 (patch) | |
tree | dde467056835e02e9e9a8bce750012c2d643e6b5 | |
parent | 8d9ff883ca606037f8992f9e1ba8aab94fae643a (diff) | |
download | rpg-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.php | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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?"; |