mirror of
https://github.com/ivuorinen/xkcd-Mailer.git
synced 2026-01-26 11:14:06 +00:00
Variable $last gets defined always, no need for the else statement
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user