commit f8515693aac88f25ccbc142a5a4cb1e9f97fbbe7
parent 44ea578fd533aaf00545084f3ca84621403fd9f3
Author: Dan Stillman <dstillman@zotero.org>
Date: Mon, 22 Apr 2013 20:08:01 -0400
Fix error when no results from regexp search
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/chrome/content/zotero/xpcom/search.js b/chrome/content/zotero/xpcom/search.js
@@ -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