From 07db0d8fe3609d76bbb73c5f7615298859a8a472 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Mon, 26 Mar 2007 20:52:17 +0000 Subject: [PATCH] Remove (harmless) SQL mistake --- chrome/content/zotero/xpcom/data_access.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chrome/content/zotero/xpcom/data_access.js b/chrome/content/zotero/xpcom/data_access.js index 5109516d8..2f5b5d17c 100644 --- a/chrome/content/zotero/xpcom/data_access.js +++ b/chrome/content/zotero/xpcom/data_access.js @@ -315,7 +315,7 @@ Zotero.Item.prototype.getCollections = function(){ * Determine whether the item belongs to a given collectionID **/ Zotero.Item.prototype.inCollection = function(collectionID){ - return !!parseInt(Zotero.DB.valueQuery("SELECT COUNT(*) collectionID " + return !!parseInt(Zotero.DB.valueQuery("SELECT COUNT(*) " + "FROM collectionItems WHERE collectionID=" + collectionID + " AND " + "itemID=" + this.getID())); }