summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2006-02-21 16:08:54 +0000
committerDries Buytaert <dries@buytaert.net>2006-02-21 16:08:54 +0000
commite172910dd350f94522a85beb3fefe925b92e10e3 (patch)
tree9b1ef2d834ff7882f95723e939b7ab222332f597
parent8fcc64ee43a90bca8c60b4a37d25b7bfed4fa3a0 (diff)
downloadbrdo-e172910dd350f94522a85beb3fefe925b92e10e3.tar.gz
brdo-e172910dd350f94522a85beb3fefe925b92e10e3.tar.bz2
- Patch #43953 by wtanaka: fixed problem with buttons on GET-forms.
-rw-r--r--includes/form.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/form.inc b/includes/form.inc
index da53a9330..8ac651f74 100644
--- a/includes/form.inc
+++ b/includes/form.inc
@@ -823,7 +823,7 @@ function theme_submit($element) {
}
function theme_button($element) {
- return '<input type="submit" class="form-'. $element['#button_type'] .'" name="'. $element['#name'] .'" value="'. check_plain($element['#value']) .'" '. drupal_attributes($element['#attributes']) ." />\n";
+ return '<input type="submit" class="form-'. $element['#button_type'] .'" '. (empty($element['#name']) ? '' : 'name="'. $element['#name'] .'" ') .'value="'. check_plain($element['#value']) .'" '. drupal_attributes($element['#attributes']) ." />\n";
}
/**