From f8515693aac88f25ccbc142a5a4cb1e9f97fbbe7 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Mon, 22 Apr 2013 20:08:01 -0400 Subject: [PATCH] Fix error when no results from regexp search --- chrome/content/zotero/xpcom/search.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chrome/content/zotero/xpcom/search.js b/chrome/content/zotero/xpcom/search.js index ba806734f6..d55f5ffd66 100644 --- 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