diff --git a/libraries/common.lib.php b/libraries/common.lib.php index 4ad91fee0..293809584 100644 --- a/libraries/common.lib.php +++ b/libraries/common.lib.php @@ -2299,9 +2299,13 @@ function PMA_externalBug($functionality, $component, $minimum_version, $bugref) * @param string $checked_choice the choice to check by default * @param boolean $line_break whether to add an HTML line break after a choice * @param boolean $escape_label whether to use htmlspecialchars() on label + * @param string $class enclose each choice with a div of this class */ -function PMA_generate_html_radio($html_field_name, $choices, $checked_choice = '', $line_break = true, $escape_label = true) { +function PMA_generate_html_radio($html_field_name, $choices, $checked_choice = '', $line_break = true, $escape_label = true, $class='') { foreach ($choices as $choice_value => $choice_label) { + if (! empty($class)) { + echo '