visuddhinanda 4 лет назад
Родитель
Сommit
66450d4d21
2 измененных файлов с 2 добавлено и 1 удалено
  1. 1 1
      public/app/pali_text/function.php
  2. 1 0
      public/app/uwbw/create_wbw.php

+ 1 - 1
public/app/pali_text/function.php

@@ -21,7 +21,7 @@ class PaliText extends Table
 		$sFirstParentTitle = "";
 		//循环查找父标题 得到整条路径
 		while ($parent > -1) {
-			$query = "SELECT * from "._TABLE_PALI_TEXT_." where \"book\" = ? and \"paragraph\" = ? limit 1";
+			$query = "SELECT * from "._TABLE_PALI_TEXT_." where \"book\" = ? and \"paragraph\" = ? ";
 			$stmt = $this->dbh->prepare($query);
 			$stmt->execute(array($book, $parent));
 			$FetParent = $stmt->fetch(PDO::FETCH_ASSOC);

+ 1 - 0
public/app/uwbw/create_wbw.php

@@ -152,6 +152,7 @@ foreach ($_para as $key => $para) {
         
         $level=100;
         $title="";
+		#TODO 查不到数据报错
         while($result = $sth->fetch(PDO::FETCH_ASSOC))
         {
             if($result["gramma"]=="?"){