From 4f196311c1590d34b0006768312ff8aeaa008664 Mon Sep 17 00:00:00 2001 From: Steven Wittens Date: Sun, 27 Feb 2005 18:39:18 +0000 Subject: - Fix submissions from search boxes in themes --- modules/search.module | 3 +++ 1 file changed, 3 insertions(+) (limited to 'modules/search.module') diff --git a/modules/search.module b/modules/search.module index 5c90c798b..bef7499e8 100644 --- a/modules/search.module +++ b/modules/search.module @@ -540,6 +540,9 @@ function search_view() { // the search query URL clean as a whistle: // search/type/keyword+keyword if ($_POST['edit']['keys']) { + if ($type == '') { + $type = 'node'; + } drupal_goto('search/'. $type .'/'. urlencode($_POST['edit']['keys'])); } else if ($type == '') { -- cgit v1.2.3