diff --git a/core/lib/Drupal/Core/Database/Database.php b/core/lib/Drupal/Core/Database/Database.php index 35f0df5..a7ea5f2 100644 --- a/core/lib/Drupal/Core/Database/Database.php +++ b/core/lib/Drupal/Core/Database/Database.php @@ -410,8 +410,8 @@ public static function closeConnection($target = NULL, $key = NULL) { unset(self::$connections[$key][$target]); } else { - foreach (self::$connections[$key] as $target => $connection) { - self::closeConnection($target, $key); + foreach (self::$connections[$key] as $connection_target => $connection) { + self::closeConnection($connection_target, $key); } unset(self::$connections[$key]); }