Fix error when no results from regexp search

This commit is contained in:
Dan Stillman 2013-04-22 20:08:01 -04:00
parent 44ea578fd5
commit f8515693aa

View file

@ -733,7 +733,7 @@ Zotero.Search.prototype.search = function(asTempTable){
var sql = "SELECT GROUP_CONCAT(itemID) FROM items WHERE "
+ "itemID NOT IN (SELECT itemID FROM " + tmpTable + ")";
var res = Zotero.DB.valueQuery(sql).split(",");
var res = Zotero.DB.valueQuery(sql);
var scopeIDs = res ? res.split(",") : [];
}
// If an ALL search, scan only items from the main search