From e781d67d137c5e34dc45c260b7a2605449e882a7 Mon Sep 17 00:00:00 2001
From: Nick Clemens <nick@bywatersolutions.com>
Date: Tue, 30 Jul 2019 15:40:54 +0000
Subject: [PATCH] Bug 23390: (QA follow-up) Don't redeclare variable

Signed-off-by: George Williams <george@nekls.org>
---
 reports/guided_reports.pl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/reports/guided_reports.pl b/reports/guided_reports.pl
index 3c43de071f..ab13e1ff23 100755
--- a/reports/guided_reports.pl
+++ b/reports/guided_reports.pl
@@ -1090,7 +1090,7 @@ sub get_prepped_report {
 
     my %lookup;
     @lookup{@$param_names} = @$sql_params;
-    my @split = split /<<|>>/,$sql;
+    @split = split /<<|>>/,$sql;
     my @tmpl_parameters;
     for(my $i=0;$i<$#split/2;$i++) {
         my $quoted = @$param_names ? $lookup{ $split[$i*2+1] } : @$sql_params[$i];
-- 
2.11.0