mirror of
https://github.com/silverstripe/silverstripe-blog
synced 2024-10-22 11:05:58 +02:00
MINOR: fixed malformed sql query
This commit is contained in:
parent
20ad8dfbbc
commit
3bf8ebc49c
@ -43,7 +43,7 @@ class TrackBackURL extends DataObject {
|
|||||||
*/
|
*/
|
||||||
function isDuplicate($onPung = false) {
|
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 IS TRUE";
|
if($onPung) $where .= " AND \"Pung\" = 1";
|
||||||
|
|
||||||
if(DataObject::get_one($this->ClassName, $where)) {
|
if(DataObject::get_one($this->ClassName, $where)) {
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
Reference in New Issue
Block a user