From d75c402999de9ad74378550ea8aafdb5a364be14 Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Mon, 28 Jun 2010 01:10:17 +0000 Subject: [PATCH] MINOR Fixed TrackbackURL->isDuplicate() with ANSI compliant SQL (see r106984 and r107129) --- code/TrackBackURL.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/TrackBackURL.php b/code/TrackBackURL.php index 0959903..7cf0903 100644 --- a/code/TrackBackURL.php +++ b/code/TrackBackURL.php @@ -42,7 +42,7 @@ class TrackBackURL extends DataObject { * @return boolean */ function isDuplicate($onPung = false) { - $where = "\"BlogEntryID\" = {$this->BlogEntryID} AND \"URL\" = '{$this->URL}' AND TrackBackURL.ID <> {$this->ID}"; + $where = "\"BlogEntryID\" = {$this->BlogEntryID} AND \"URL\" = '{$this->URL}' AND \"TrackBackURL\".\"ID\" <> {$this->ID}"; if($onPung) $where .= " AND \"Pung\" = 1"; if(DataObject::get_one($this->ClassName, $where)) {