From: jake%acutex.net <> Date: Tue, 25 Dec 2001 06:24:35 +0000 (+0000) Subject: Re-fixing bug 37339 - Checking an undefined variable for a specific value didn't... X-Git-Tag: bugzilla-2.16rc1~284 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=150d0d4a4d122a0cc0a6a55413f3dfc9d5cc512c;p=thirdparty%2Fbugzilla.git Re-fixing bug 37339 - Checking an undefined variable for a specific value didn't work in Netscape 4 (and was probably a strict warning everywhere else). Fix by Christian Reis r= afranke, jake --- diff --git a/quicksearch.js b/quicksearch.js index e8834a7222..ff43a5f1db 100644 --- a/quicksearch.js +++ b/quicksearch.js @@ -46,7 +46,7 @@ function do_shift(l) { } function go_to (url) { - if (sidebar == 1) { + if ( typeof sidebar != "undefined" && sidebar == 1 ) { load_relative_url(url); } else { document.location.href = url;