From 9a52ef3ef404e7acfb8c108637c214aba66ea93c Mon Sep 17 00:00:00 2001 From: Ismo Vuorinen Date: Sun, 25 May 2014 17:13:07 +0300 Subject: [PATCH] Variable $last gets defined always, no need for the else statement --- xkcd-mailer.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/xkcd-mailer.php b/xkcd-mailer.php index 4409be4..1f0401d 100644 --- a/xkcd-mailer.php +++ b/xkcd-mailer.php @@ -41,12 +41,11 @@ $item = $data->entry[0]; + $last = 0; if (file_exists($lastfile)) { $f = fopen($lastfile, 'r'); $last = (int) fread($f, 1024); fclose($f); - } else { - $last = 0; } $parts = explode('/', $item->id);