summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--fetch.php9
1 files changed, 7 insertions, 2 deletions
diff --git a/fetch.php b/fetch.php
index d61962051..2e11a3b06 100644
--- a/fetch.php
+++ b/fetch.php
@@ -76,8 +76,13 @@
$fp = @fopen($FILE,"rb");
- fpassthru($fp);
- fclose($fp);
+ if($fp){
+ fpassthru($fp);
+ fclose($fp);
+ }else{
+ header("HTTP/1.0 500 Internal Server Error");
+ print "Could not read $FILE - bad permissions?";
+ }
/* ------------------------------------------------------------------------ */