FIX Admin bloacklisted messages using correct $.inArray check

This commit is contained in:
Daniel Hensby 2016-04-24 08:57:45 +01:00
parent 1f820b0b1c
commit fde6376996
No known key found for this signature in database
GPG Key ID: E38EC566FE29EB66

View File

@ -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);
}