From 81b429420b1e13f0d7420689ff05f1619bd16779 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Sat, 11 Jul 2009 01:20:26 +0000 Subject: [PATCH] Tweak to previous commit --- chrome/content/zotero/xpcom/sync.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/chrome/content/zotero/xpcom/sync.js b/chrome/content/zotero/xpcom/sync.js index 2cd0cde096..373fe901b8 100644 --- a/chrome/content/zotero/xpcom/sync.js +++ b/chrome/content/zotero/xpcom/sync.js @@ -3247,13 +3247,13 @@ Zotero.Sync.Server.Data = new function() { continue; } - if (unsaved.length == originalLength) { - var msg = "Incomplete collection hierarchy cannot be saved in Zotero.Sync.Server.Data._saveCollections()"; - var e = new Zotero.Error(msg, "MISSING_OBJECT"); - throw (e); - } - if (unsaved.length) { + if (unsaved.length == originalLength) { + var msg = "Incomplete collection hierarchy cannot be saved in Zotero.Sync.Server.Data._saveCollections()"; + var e = new Zotero.Error(msg, "MISSING_OBJECT"); + throw (e); + } + _saveCollections(unsaved); } }