From fe1eb01ce642a9bf81ff9cd280a0648264ecd1b6 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Mon, 2 May 2011 20:11:49 +0000 Subject: [PATCH] Fix potential WebDAV error on Restore to Zoteor Server even if WebDAV isn't selected --- chrome/content/zotero/xpcom/storage.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/chrome/content/zotero/xpcom/storage.js b/chrome/content/zotero/xpcom/storage.js index 0bd0fb1247..19532c5a2a 100644 --- a/chrome/content/zotero/xpcom/storage.js +++ b/chrome/content/zotero/xpcom/storage.js @@ -786,6 +786,9 @@ Zotero.Sync.Storage = new function () { this.purgeDeletedStorageFiles = function (module, callback) { var session = new Zotero.Sync.Storage.Session(module, { onError: _error }); + if (!this.active) { + return; + } if (!session.initFromPrefs()) { return; } @@ -795,6 +798,9 @@ Zotero.Sync.Storage = new function () { this.purgeOrphanedStorageFiles = function (module, callback) { var session = new Zotero.Sync.Storage.Session(module, { onError: _error }); + if (!this.active) { + return; + } if (!session.initFromPrefs()) { return; }