summaryrefslogtreecommitdiffstats
path: root/core/includes/form.inc
diff options
context:
space:
mode:
Diffstat (limited to 'core/includes/form.inc')
-rw-r--r--core/includes/form.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/includes/form.inc b/core/includes/form.inc
index 7dd168b..b4c6a71 100644
--- a/core/includes/form.inc
+++ b/core/includes/form.inc
@@ -207,7 +207,7 @@ function template_preprocess_fieldset(&$variables) {
$variables['legend']['attributes'] = new Attribute();
// Add 'visually-hidden' class to legend span.
if ($variables['title_display'] == 'invisible') {
- $variables['legend_span']['attributes'] = new Attribute(array('class' => 'visually-hidden'));
+ $variables['legend_span']['attributes'] = new Attribute(['class' => ['visually-hidden']]);
}
else {
$variables['legend_span']['attributes'] = new Attribute();