ソースを参照

:fire: 删除无用的变量arrBookList

visuddhinanda 4 年 前
コミット
428c6329d0
1 ファイル変更0 行追加3 行削除
  1. 0 3
      app/search/word_list.php

+ 0 - 3
app/search/word_list.php

@@ -82,7 +82,6 @@ if (isset($booklist)) {
 $query = "SELECT book, wordindex,count from "._TABLE_BOOK_WORD_." where \"wordindex\" in $strQueryWordId ";
 $Fetch = PDO_FetchAll($query);
 $iFetch = count($Fetch);
-$newBookList = array();
 
 $worddata = array();
 
@@ -90,8 +89,6 @@ if ($iFetch > 0) {
     for ($i = 0; $i < $iFetch; $i++) {
         $book = $Fetch[$i]["book"];
 
-        array_push($newBookList, array($book, $sum));
-
         $t1 = $arrBookType[$book - 1]->c1;
         $t2 = $arrBookType[$book - 1]->c2;
         switch ($t1) {