summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--quicksearch.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/quicksearch.js b/quicksearch.js
index e8834a722..ff43a5f1d 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;