#601806 follow-up by sun and effulgentsia: Fix broken HEAD.

merge-requests/26/head
Angie Byron 2009-11-16 20:31:27 +00:00
parent 796bb8543b
commit f39f02ce75
1 changed files with 3 additions and 1 deletions

View File

@ -5131,7 +5131,9 @@ function drupal_render_cache_get($elements) {
if (!empty($cid) && $cache = cache_get($cid, $bin)) {
// Add additional libraries, JavaScript, CSS and other data attached
// to this element.
drupal_process_attached($cache->data);
if (isset($cache->data['#attached'])) {
drupal_process_attached($cache->data);
}
// Return the rendered output.
return $cache->data['#markup'];;
}