diff --git a/core/includes/theme.inc b/core/includes/theme.inc index 7722301..1ed2caa 100644 --- a/core/includes/theme.inc +++ b/core/includes/theme.inc @@ -2098,12 +2098,7 @@ function theme_table($variables) { drupal_add_library('system', 'drupal.tableheader'); // Add 'sticky-enabled' class to the table to identify it for JS. // This is needed to target tables constructed by this function. - if (isset($attributes['class'])) { - $attributes['class'][] = 'sticky-enabled'; - } - else { - $attributes['class'] = array('sticky-enabled'); - } + $attributes['class'][] = 'sticky-enabled'; } // If the table has headers and it should react responsively to columns hidden // with the classes represented by the constants RESPONSIVE_PRIORITY_MEDIUM @@ -2112,12 +2107,7 @@ function theme_table($variables) { drupal_add_library('system', 'drupal.tableresponsive'); // Add 'responsive-enabled' class to the table to identify it for JS. // This is needed to target tables constructed by this function. - if (isset($attributes['class'])) { - $attributes['class'][] = 'responsive-enabled'; - } - else { - $attributes['class'] = array('responsive-enabled'); - } + $attributes['class'][] = 'responsive-enabled'; } $output = '