diff --git a/libraries/src/HTML/Helpers/Select.php b/libraries/src/HTML/Helpers/Select.php
index f6e8d2d6c01eb..e0499e43b72b5 100644
--- a/libraries/src/HTML/Helpers/Select.php
+++ b/libraries/src/HTML/Helpers/Select.php
@@ -631,7 +631,14 @@ public static function radiolist(
$idtag = false,
$translate = false
) {
+ $class = '';
+
if (\is_array($attribs)) {
+ if (\array_key_exists('class', $attribs)) {
+ $class = ' ' . $attribs['class'];
+ unset($attribs['class']);
+ }
+
$attribs = ArrayHelper::toString($attribs);
}
@@ -662,7 +669,7 @@ public static function radiolist(
$extra .= ((string) $k === (string) $selected ? ' checked="checked" ' : '');
}
- $html .= '';
$html .= '';
$html .= '';