mirror of
https://github.com/demostf/backup.git
synced 2026-06-03 14:04:10 +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)) {
|
||||
$lastPage = intval(file_get_contents($statePath));
|
||||
if (!$lastPage) {
|
||||
$lastPage = intval(file_get_contents($statePath)) - 1;
|
||||
if ($lastPage < 1) {
|
||||
$lastPage = 1;
|
||||
}
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue