From 04f169960179f53f7590f8ccf83a8ee83415561f Mon Sep 17 00:00:00 2001 From: Ismo Vuorinen Date: Sun, 25 May 2014 17:01:58 +0300 Subject: [PATCH] No need for the else, script dies if config can't be loaded --- xkcd-mailer.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/xkcd-mailer.php b/xkcd-mailer.php index b9c1baa..576fb2e 100644 --- a/xkcd-mailer.php +++ b/xkcd-mailer.php @@ -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";