diff --git a/chrome/content/zotero/xpcom/data/relations.js b/chrome/content/zotero/xpcom/data/relations.js index 9ec11f0e0e..2ef241fe64 100644 --- a/chrome/content/zotero/xpcom/data/relations.js +++ b/chrome/content/zotero/xpcom/data/relations.js @@ -171,7 +171,7 @@ Zotero.Relations = new function () { this.eraseByURI = function (uri) { - sql = "DELETE FROM relations WHERE subject=? OR object=?"; + var sql = "DELETE FROM relations WHERE subject=? OR object=?"; Zotero.DB.query(sql, [uri, uri]); }