Skip to content

Commit

Permalink
MINOR Fixed TrackbackURL->isDuplicate() with ANSI compliant SQL (see …
Browse files Browse the repository at this point in the history
…r106984 and r107129)
  • Loading branch information
chillu committed Jun 28, 2010
1 parent 3bf8ebc commit d75c402
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/TrackBackURL.php
Expand Up @@ -42,7 +42,7 @@ function IsPung() {
* @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)) {
Expand Down

0 comments on commit d75c402

Please sign in to comment.