fix 點到點變雙向查詢

This commit is contained in:
Yuan Chiu 2016-05-01 12:07:09 +08:00
parent 6ca2a96459
commit cca7b5dace

View File

@ -93,7 +93,8 @@ class DBRecommand extends Database
*/ */
public function queryEdgeByID($currentPoint) public function queryEdgeByID($currentPoint)
{ {
$AllOfResult = $this->queryEdgeByWhere($this->table('learn_path').".Ti = ".$this->connDB->quote($currentPoint)); $AllOfResult = $this->queryEdgeByWhere($this->table('learn_path').".Ti = ".$this->connDB->quote($currentPoint)." OR ".
$this->table('learn_path').".Tj = ".$this->connDB->quote($currentPoint));
if(count($AllOfResult) != 0) return $AllOfResult; if(count($AllOfResult) != 0) return $AllOfResult;
else return null; else return null;
} }