mirror of
https://github.com/demostf/backup.git
synced 2026-06-03 22:14:08 +02:00
retry last page just in case
This commit is contained in:
parent
a87180d2d7
commit
144d03e1e2
1 changed files with 3 additions and 3 deletions
|
|
@ -13,8 +13,8 @@ $statePath = getenv('STATE_FILE');
|
||||||
|
|
||||||
|
|
||||||
if (file_exists($statePath)) {
|
if (file_exists($statePath)) {
|
||||||
$lastPage = intval(file_get_contents($statePath));
|
$lastPage = intval(file_get_contents($statePath)) - 1;
|
||||||
if (!$lastPage) {
|
if ($lastPage < 1) {
|
||||||
$lastPage = 1;
|
$lastPage = 1;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue