From e279c0afe83d769f9a93c18a1327f8376229fd40 Mon Sep 17 00:00:00 2001 From: Nahuel Angelinetti Date: Wed, 15 Oct 2008 11:03:25 +0200 Subject: [PATCH] a more readable way to test an array size. Signed-off-by: Galen Charlton --- 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 c8334661f6..1013d45c7d 100755 --- a/reports/guided_reports.pl +++ b/reports/guided_reports.pl @@ -401,7 +401,7 @@ elsif ($phase eq 'Export'){ my $sql = $input->param('sql'); my $format = $input->param('format'); my ($results, $total, $errors) = execute_query($sql,1,0,0,$format); - if ($#$errors == -1) { + if (!@$errors) { $no_html=1; print $input->header( -type => 'application/octet-stream', -attachment=>'reportresults.csv' -- 2.39.5