www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit fe1eb01ce642a9bf81ff9cd280a0648264ecd1b6
parent a979acb4b811abbb45d71b0fc21f601863e20ad8
Author: Dan Stillman <dstillman@zotero.org>
Date:   Mon,  2 May 2011 20:11:49 +0000

Fix potential WebDAV error on Restore to Zoteor Server even if WebDAV isn't selected


Diffstat:
Mchrome/content/zotero/xpcom/storage.js | 6++++++
1 file changed, 6 insertions(+), 0 deletions(-)

diff --git 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; }