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);