mirror of
https://github.com/ivuorinen/xkcd-Mailer.git
synced 2026-02-20 18:54:54 +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];
|
$item = $data->entry[0];
|
||||||
|
|
||||||
|
$last = 0;
|
||||||
if (file_exists($lastfile)) {
|
if (file_exists($lastfile)) {
|
||||||
$f = fopen($lastfile, 'r');
|
$f = fopen($lastfile, 'r');
|
||||||
$last = (int) fread($f, 1024);
|
$last = (int) fread($f, 1024);
|
||||||
fclose($f);
|
fclose($f);
|
||||||
} else {
|
|
||||||
$last = 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$parts = explode('/', $item->id);
|
$parts = explode('/', $item->id);
|
||||||
|
|||||||
Reference in New Issue
Block a user