diff --git a/core/includes/common.inc b/core/includes/common.inc index 353a9b5..396bc56 100644 --- a/core/includes/common.inc +++ b/core/includes/common.inc @@ -4417,6 +4417,9 @@ function drupal_pre_render_scripts($elements) { */ function drupal_group_js($javascript) { $groups = array(); + if (empty($javascript)) { + return $groups; + } // If a group can contain multiple items, we track the information that must // be the same for each item in the group, so that when we iterate the next // item, we can determine if it can be put into the current group, or if a