]> git.wh0rd.org - tt-rss.git/blobdiff - index.php
fix 500 error on missing config.php
[tt-rss.git] / index.php
index 5b5560a9a548a2552edf4746db213bf56f960ec7..76b1d13cfe3f9528b0c6f93de27c1a10c5720742 100644 (file)
--- a/index.php
+++ b/index.php
@@ -1,4 +1,10 @@
 <?php
+       if (!file_exists("config.php")) {
+               print "<b>Fatal Error</b>: You forgot to copy
+               <b>config.php-dist</b> to <b>config.php</b> and edit it.\n";
+               exit;
+       }
+
        set_include_path(get_include_path() . PATH_SEPARATOR . "include");
 
        require_once "functions.php";