Răsfoiți Sursa

:bug: book 217 被忽略

visuddhinanda@gmail.com 4 ani în urmă
părinte
comite
d61f9b5b76

+ 2 - 2
public/app/install/db_insert_palitext_cli.php

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

+ 2 - 2
public/app/install/db_update_palitext_cli.php

@@ -42,8 +42,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;
 }