From: Trevor Parscal Date: Tue, 11 Jan 2011 21:55:45 +0000 (+0000) Subject: Fixed logic error that caused the test to always pass. X-Git-Tag: 1.31.0-rc.0~32614 X-Git-Url: http://git.cyclocoop.org/%22.%24image2.%22?a=commitdiff_plain;h=9d999a61fc4b9b150299aaf70463cc217d963f52;p=lhc%2Fweb%2Fwiklou.git Fixed logic error that caused the test to always pass. --- diff --git a/resources/jquery/jquery.client.js b/resources/jquery/jquery.client.js index 9d52ff5a89..8b96b836b0 100644 --- a/resources/jquery/jquery.client.js +++ b/resources/jquery/jquery.client.js @@ -169,7 +169,7 @@ $.client = new ( function() { var profile = $.client.profile(); var dir = $( 'body' ).is( '.rtl' ) ? 'rtl' : 'ltr'; // Check over each browser condition to determine if we are running in a compatible client - if ( typeof map[dir] !== 'object' || map[dir][profile.name] !== 'object' ) { + if ( typeof map[dir] !== 'object' || typeof map[dir][profile.name] === 'undefined' ) { // Unknown, so we assume it's working return true; }