[1mdiff --git a/includes/common.inc b/includes/common.inc[m
[1mindex 268e36b..37c3295 100644[m
[1m--- a/includes/common.inc[m
[1m+++ b/includes/common.inc[m
[36m@@ -2955,8 +2955,13 @@[m [mfunction drupal_get_css($css = NULL, $skip_alter = FALSE) {[m
 [m
   // Provide the page with information about the individual CSS files used,[m
   // information not otherwise available when CSS aggregation is enabled.[m
[31m-  $setting['ajaxPageState']['css'] = array_fill_keys(array_keys($css), 1);[m
[31m-  $styles['#attached']['js'][] = array('type' => 'setting', 'data' => $setting);[m
[32m+[m[32m  // Skip if no files were added to the page or jQuery.extend() will overwrite[m
[32m+[m[32m  // the Drupal.settings.ajaxPageState.css Object with an empty Array.[m
[32m+[m[32m  // Cast the Array to an Object to be on the safe side even if not empty.[m
[32m+[m[32m  if (!empty($css)) {[m
[32m+[m[32m    $setting['ajaxPageState']['css'] = (object) array_fill_keys(array_keys($css), 1);[m
[32m+[m[32m    $styles['#attached']['js'][] = array('type' => 'setting', 'data' => $setting);[m
[32m+[m[32m  }[m
 [m
   return drupal_render($styles);[m
 }[m
