summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--modules/search.module3
-rw-r--r--modules/search/search.module3
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 == '') {