瀏覽代碼

:bug: book 217 被忽略

visuddhinanda@gmail.com 4 年之前
父節點
當前提交
d61f9b5b76
共有 2 個文件被更改,包括 4 次插入4 次删除
  1. 2 2
      public/app/install/db_insert_palitext_cli.php
  2. 2 2
      public/app/install/db_update_palitext_cli.php

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

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