From fde6376996dbaba31601065869c60676845eeb85 Mon Sep 17 00:00:00 2001 From: Daniel Hensby Date: Sun, 24 Apr 2016 08:57:45 +0100 Subject: [PATCH] FIX Admin bloacklisted messages using correct $.inArray check --- admin/javascript/LeftAndMain.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin/javascript/LeftAndMain.js b/admin/javascript/LeftAndMain.js index 577cd9c33..1dd8ceb25 100644 --- a/admin/javascript/LeftAndMain.js +++ b/admin/javascript/LeftAndMain.js @@ -150,7 +150,7 @@ jQuery.noConflict(); } // Show message (but ignore aborted requests) - if(xhr.status !== 0 && msg && $.inArray(msg, ignoredMessages)) { + if(xhr.status !== 0 && msg && $.inArray(msg, ignoredMessages) != -1) { // Decode into UTF-8, HTTP headers don't allow multibyte statusMessage(decodeURIComponent(msg), msgType); }