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

This commit is contained in:
Dan Stillman 2011-05-02 20:11:49 +00:00
parent a979acb4b8
commit fe1eb01ce6

View file

@ -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;
}