diff --git a/chrome/content/zotero/xpcom/data/libraries.js b/chrome/content/zotero/xpcom/data/libraries.js index 367de7269d..b623285fdc 100644 --- a/chrome/content/zotero/xpcom/data/libraries.js +++ b/chrome/content/zotero/xpcom/data/libraries.js @@ -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=?";