Commit e53992d2 authored by Beatriz Rodrigues's avatar Beatriz Rodrigues Committed by Mike Carper
Browse files

Issue #3257056 by beatrizrodrigues, mikeytown2: Notice: Undefined index: type...

Issue #3257056 by beatrizrodrigues, mikeytown2: Notice: Undefined index: type in _advagg_locale_js_alter
parent 8b3d5e62
Loading
Loading
Loading
Loading
+2 −1
Changes for advagg.module: 2 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -711,7 +711,8 @@ function _advagg_locale_js_alter(&$js) {
  // Check for new js source files.
  if (empty($new_files)) {
    foreach ($js as $item) {
      if ($item['type'] === 'file'
      // If type is not set, default type in drupal_add_js() is file.
      if ((isset($item['type']) && $item['type'] === 'file')
        && !in_array($item['data'], $parsed)
        && substr($item['data'], 0, strlen($dir)) != $dir
      ) {