Variable $last gets defined always, no need for the else statement

This commit is contained in:
Ismo Vuorinen
2014-05-25 17:13:07 +03:00
parent f23dd403fb
commit 9a52ef3ef4

View File

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