Fix code that never threw a parse error before

This commit is contained in:
Simon Kornblith 2013-01-15 02:53:45 -05:00
parent b938ce5fdd
commit 0f957d6e99

View file

@ -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) {