From a95f433eab7601d1c932096976d08f1873eea248 Mon Sep 17 00:00:00 2001 From: "jake%acutex.net" Date: Mon, 24 Dec 2001 22:24:35 +0000 Subject: [PATCH] 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 git-svn-id: svn://10.0.0.236/trunk@111060 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/webtools/bugzilla/quicksearch.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mozilla/webtools/bugzilla/quicksearch.js b/mozilla/webtools/bugzilla/quicksearch.js index e8834a7222a..ff43a5f1db1 100644 --- a/mozilla/webtools/bugzilla/quicksearch.js +++ b/mozilla/webtools/bugzilla/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;