From 7270a08ef063bcc14d3d57c67fb2a24f612b91ee Mon Sep 17 00:00:00 2001
From: Dries Buytaert <dries@buytaert.net>
Date: Wed, 23 Aug 2006 13:35:44 +0000
Subject: [PATCH] - Patch #76637 by timcn: fixed incorrect variable name.

---
 includes/common.inc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/includes/common.inc b/includes/common.inc
index 8fce947ddfef..82f7e4300d7f 100644
--- a/includes/common.inc
+++ b/includes/common.inc
@@ -1426,8 +1426,8 @@ function drupal_get_js($scope = 'header', $javascript = NULL) {
         }
         break;
       default:
-        foreach ($data as $path => $flags) {
-          $output .= '<script type="text/javascript"'. ($info['defer'] ? ' defer="defer"' : '') .' src="'. check_url(base_path() . $path) . ($flags['cache'] ? '' : '?'. time()) ."\"></script>\n";
+        foreach ($data as $path => $info) {
+          $output .= '<script type="text/javascript"'. ($info['defer'] ? ' defer="defer"' : '') .' src="'. check_url(base_path() . $path) . ($info['cache'] ? '' : '?'. time()) ."\"></script>\n";
         }
     }
   }
-- 
GitLab