No need for the else, script dies if config can't be loaded

This commit is contained in:
Ismo Vuorinen
2014-05-25 17:01:58 +03:00
parent d55a901d98
commit 04f1699601

View File

@@ -17,9 +17,8 @@
$here = dirname(__FILE__);
if (! is_readable($here . '/config.php')) {
die("Please configure me. I don't know where I should sent the comic. (Config file {$here}/config.php missing.)");
} else {
include_once($here . '/config.php');
}
include_once($here . '/config.php');
$feed = "http://xkcd.com/atom.xml";