Fix breakage from 10ba5e31d

This commit is contained in:
Dan Stillman 2014-09-20 16:33:53 -04:00
parent b0550273ae
commit cb707a55c8

View File

@ -910,7 +910,8 @@ Zotero.Item.prototype.getDisplayTitle = function (includeAuthorAndDate) {
if (participants.length > 0) {
let names = [];
for (let i=0; i<4; i++) {
let max = Math.min(4, participants.length);
for (let i=0; i<max; i++) {
names.push(participants[i].ref.lastName);
}
switch (names.length) {