取得學習中學習點Bug修正

This commit is contained in:
Yuan Chiu 2016-05-06 07:07:31 +08:00
parent 4f97623af5
commit 5f44af1f5d

View File

@ -353,8 +353,7 @@ class DBStudy extends Database {
public function getCurrentInTargetId($activity_id) {
$sqlString = "SELECT `TID` FROM `".$this->table('user_history')."` ".
"WHERE `Out_TargetTime` IS NULL AND `SaID` = :said ".
"AND `IsEnter` = '1'";
"WHERE `Out_TargetTime` IS NULL AND `SaID` = :said";
$query = $this->connDB->prepare($sqlString);
$query->bindParam(":said", $activity_id);