diff --git a/chrome/content/zotero/xpcom/data/relation.js b/chrome/content/zotero/xpcom/data/relation.js index 1d2f8272f..4e4f14c6f 100644 --- a/chrome/content/zotero/xpcom/data/relation.js +++ b/chrome/content/zotero/xpcom/data/relation.js @@ -105,7 +105,7 @@ Zotero.Relation.prototype._set = function (field, val) { Zotero.Relation.prototype.exists = function () { if (this.id) { var sql = "SELECT COUNT(*) FROM relations WHERE relationID=?"; - return !!Zotero_DB::valueQuery(sql, this.id); + return !!Zotero.DB.valueQuery(sql, this.id); } if (this.libraryID && this.subject && this.predicate && this.object) {