Remove (harmless) SQL mistake

This commit is contained in:
Dan Stillman 2007-03-26 20:52:17 +00:00
parent f43acd85c9
commit 07db0d8fe3

View File

@ -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()));
}