diff options
author | Steven Wittens <steven@10.no-reply.drupal.org> | 2005-02-27 18:39:18 +0000 |
---|---|---|
committer | Steven Wittens <steven@10.no-reply.drupal.org> | 2005-02-27 18:39:18 +0000 |
commit | 4f196311c1590d34b0006768312ff8aeaa008664 (patch) | |
tree | 8a924286b84aaf3b5e130d11ec54e3d745f631f9 | |
parent | 39adda168758b3b3d19a3297adcbf7923d1f6931 (diff) | |
download | brdo-4f196311c1590d34b0006768312ff8aeaa008664.tar.gz brdo-4f196311c1590d34b0006768312ff8aeaa008664.tar.bz2 |
- Fix submissions from search boxes in themes
-rw-r--r-- | modules/search.module | 3 | ||||
-rw-r--r-- | modules/search/search.module | 3 |
2 files changed, 6 insertions, 0 deletions
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 == '') { diff --git a/modules/search/search.module b/modules/search/search.module index 5c90c798b..bef7499e8 100644 --- a/modules/search/search.module +++ b/modules/search/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 == '') { |