Fix == use

This commit is contained in:
Simon Kornblith 2014-09-01 23:19:12 -04:00
parent 9146fb03d9
commit 57da88ac3d

View file

@ -484,7 +484,7 @@ Zotero.OpenURL = new function() {
// the plain author, since it might have a middle initial
if (item.creators[j].lastName == complexAu[i].lastName &&
item.creators[j].firstName &&
(item.creators[j].firstName == complexAu[i].firstName == "" ||
((item.creators[j].firstName == "" && complexAu[i].firstName == "") ||
(item.creators[j].firstName.length >= complexAu[i].firstName.length &&
item.creators[j].firstName.substr(0, complexAu[i].firstName.length) == complexAu[i].firstName))) {
pushMe = false;