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

+ 2 - 2
public/app/db/pali_text.php

@@ -66,7 +66,7 @@ class PaliText extends Table
 				}
 			}
 			$title="";
-			$query = "select * from pali_text where book = ? and paragraph = ?";
+			$query = "SELECT * from "._TABLE_PALI_TEXT_." where book = ? and paragraph = ?";
 			$stmt = $this->dbh->prepare($query);
 			$stmt->execute(array($book,$para));
 			$result = $stmt->fetch(PDO::FETCH_ASSOC);
@@ -75,7 +75,7 @@ class PaliText extends Table
 					$title= $result["toc"];
 				}
 				else{
-					$query = "select * from pali_text where book = ? and paragraph = ?";
+					$query = "SELECT * from "._TABLE_PALI_TEXT_." where book = ? and paragraph = ?";
 					$stmt = $this->dbh->prepare($query);
 					$stmt->execute(array($book,$result["parent"]));
 					$result = $stmt->fetch(PDO::FETCH_ASSOC);