Skip to content

Commit b4d5c47

Browse files
committed
fixed default lastId
1 parent 4678f67 commit b4d5c47

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/models/Storage.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ protected function readLastId()
6161
{
6262
$path = $this->getLastIDPath();
6363

64-
return file_exists($path) ? (int) file_get_contents($path) : 1000000;
64+
return (file_exists($path) ? (int) file_get_contents($path) : 0) ?: 1000000;
6565
}
6666

6767
protected function writeLastId($value)

0 commit comments

Comments
 (0)