From a5c87ce014aa878aa3159b683d858789ab72a9d2 Fri, 28 Jun 2013 21:43:32 +0200
From: hass <hass@85918.no-reply.drupal.org>
Date: Fri, 28 Jun 2013 21:43:04 +0200
Subject: [PATCH] Issue #2030869 by hass: Theme cannot add classes via preprocess webform date

diff --git a/components/date.inc b/components/date.inc
index 40d6ded..1a0e5cd 100644
--- a/components/date.inc
+++ b/components/date.inc
@@ -233,9 +233,9 @@
 function theme_webform_date($variables) {
   $element = $variables['element'];
 
-  $element['year']['#attributes']['class'] = array('year');
-  $element['month']['#attributes']['class'] = array('month');
-  $element['day']['#attributes']['class'] = array('day');
+  $element['year']['#attributes']['class'][] = 'year';
+  $element['month']['#attributes']['class'][] = 'month';
+  $element['day']['#attributes']['class'][] = 'day';
 
   // Add error classes to all items within the element.
   if (form_get_error($element)) {
