From 6e57b36bff763185fe59f5611d09e449b0a8d426 Mon Sep 17 00:00:00 2001 From: andi Date: Wed, 11 May 2005 19:51:44 +0200 Subject: 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 --- fetch.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'fetch.php') 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?"; -- cgit v1.2.3