Use DB libraryID for check in Zotero.Libraries.getType()

Before, 'user' wouldn't be returned if the real libraryID was given for
the personal library.
This commit is contained in:
Dan Stillman 2014-10-09 14:19:22 -04:00
parent 7541106641
commit 3c81067961

View file

@ -92,7 +92,7 @@ Zotero.Libraries = new function () {
this.getType = function (libraryID) {
if (libraryID === 0) {
if (this.dbLibraryID(libraryID) === 0) {
return 'user';
}
if (!_libraryData[libraryID]) {