diff --git a/js/mailhops_details.js b/js/mailhops_details.js
index 07c2819..be6dafb 100644
--- a/js/mailhops_details.js
+++ b/js/mailhops_details.js
@@ -136,7 +136,7 @@ function updateContent(msg, noauth) {
auth += '';
}
else if (msg.message.auth[a].link) {
- if (msg.message.auth[a].link.indexOf(',')) {
+ if (-1 !== msg.message.auth[a].link.indexOf(',')) {
auth += '' + msg.message.auth[a].type + '';
}
else {