From e172910dd350f94522a85beb3fefe925b92e10e3 Mon Sep 17 00:00:00 2001 From: Dries Buytaert <dries@buytaert.net> Date: Tue, 21 Feb 2006 16:08:54 +0000 Subject: [PATCH] - Patch #43953 by wtanaka: fixed problem with buttons on GET-forms. --- includes/form.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/form.inc b/includes/form.inc index da53a9330649..8ac651f748dc 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"; } /** -- GitLab