commit 57da88ac3df3134e0e577693613db98327ec187b
parent 9146fb03d9a94e7fd6fb08fdb54a4926c7976dcf
Author: Simon Kornblith <simon@simonster.com>
Date: Mon, 1 Sep 2014 23:19:12 -0400
Fix == use
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/chrome/content/zotero/xpcom/openurl.js b/chrome/content/zotero/xpcom/openurl.js
@@ -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;