Better fix for merging items in unsynced libraries

Addresses a79872436
This commit is contained in:
Dan Stillman 2013-11-08 03:09:34 -05:00
parent a798724366
commit f7fe9ab64b

View file

@ -63,7 +63,7 @@ Zotero.Libraries = new function () {
this.getType = function (libraryID) {
if (libraryID === 0 || libraryID == Zotero.libraryID || ("" + libraryID).indexOf('local/') == 0) {
if (libraryID === 0 || !Zotero.libraryID || libraryID == Zotero.libraryID) {
return 'user';
}
var sql = "SELECT libraryType FROM libraries WHERE libraryID=?";