From df1c92b9a3ae124f714f351f4b77bbf9228f617c Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Thu, 23 Jun 2016 14:28:13 -0400 Subject: [PATCH] Fix "librariesToSync is undefined" when full-text syncing is disabled --- chrome/content/zotero/xpcom/sync/syncRunner.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chrome/content/zotero/xpcom/sync/syncRunner.js b/chrome/content/zotero/xpcom/sync/syncRunner.js index 8c63e7075..1a4b164d3 100644 --- a/chrome/content/zotero/xpcom/sync/syncRunner.js +++ b/chrome/content/zotero/xpcom/sync/syncRunner.js @@ -580,7 +580,7 @@ Zotero.Sync.Runner_Module = function (options = {}) { * @return {Integer[]} - Array of libraries that need data syncing again */ var _doFullTextSync = Zotero.Promise.coroutine(function* (libraries, options) { - if (!Zotero.Prefs.get("sync.fulltext.enabled")) return; + if (!Zotero.Prefs.get("sync.fulltext.enabled")) return []; Zotero.debug("Starting full-text syncing"); this.setSyncStatus(Zotero.getString('sync.status.syncingFullText'));