From cca7b5dacea69afc0f810534ef4ef807cfd6f8cc Mon Sep 17 00:00:00 2001 From: Yuan Chiu Date: Sun, 1 May 2016 12:07:09 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E9=BB=9E=E5=88=B0=E9=BB=9E=E8=AE=8A?= =?UTF-8?q?=E9=9B=99=E5=90=91=E6=9F=A5=E8=A9=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/lib/Database/DBRecommand.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/htdocs/lib/Database/DBRecommand.php b/htdocs/lib/Database/DBRecommand.php index c48f51b..1a6fa9b 100644 --- a/htdocs/lib/Database/DBRecommand.php +++ b/htdocs/lib/Database/DBRecommand.php @@ -93,7 +93,8 @@ class DBRecommand extends Database */ 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; else return null; }