diff --git a/includes/common.inc b/includes/common.inc index 1d866951f13..78792191223 100644 --- a/includes/common.inc +++ b/includes/common.inc @@ -966,20 +966,20 @@ function form_group($legend, $group, $description = NULL) { } function form_radio($title, $name, $value = 1, $checked = 0, $description = NULL, $attributes = NULL) { - return theme("form_element", NULL, " $title", $description); + return theme("form_element", NULL, "'. (!is_null($title) ? " " : ''), $description); } function form_radios($title, $name, $value, $options, $description = NULL) { if (count($options) > 0) { foreach ($options as $key => $choice) { - $choices .= " $choice
"; + $choices .= "
"; } return theme("form_element", $title, $choices, $description); } } function form_checkbox($title, $name, $value = 1, $checked = 0, $description = NULL, $attributes = NULL) { - return form_hidden($name, 0) . theme("form_element", NULL, " $title", $description); + return form_hidden($name, 0) . theme("form_element", NULL, "' . (!is_null($title) ? " " : ''), $description); } function form_textfield($title, $name, $value, $size, $maxlength, $description = NULL, $attributes = NULL) {