diff --git a/chrome/content/zotero/xpcom/data/collection.js b/chrome/content/zotero/xpcom/data/collection.js index 17dcb5e60..14ed29d79 100644 --- a/chrome/content/zotero/xpcom/data/collection.js +++ b/chrome/content/zotero/xpcom/data/collection.js @@ -1267,8 +1267,9 @@ Zotero.Collection.prototype._loadChildItems = function() { this._childItems = []; if (ids) { - for each(var id in ids) { - this._childItems.push(Zotero.Items.get(id)); + var items = Zotero.Items.get(ids) + if (items) { + this._childItems = items; } }