@@ -41,8 +41,8 @@ if (($handle = fopen(__DIR__."/filelist.csv", 'r')) !== false) {
$fileNums++;
}
-if ($to == 0 || $to >= $fileNums) {
- $to = $fileNums - 1;
+if ($to == 0 || $to > $fileNums) {
+ $to = $fileNums;
$dns = _DB_;
@@ -42,8 +42,8 @@ if (($handle = fopen(__DIR__."/filelist.csv", 'r')) !== false) {