From: Galen Charlton <[email protected]> $error return C4::Reports::execute_query is always defined.
Signed-off-by: Galen Charlton <[email protected]> Signed-off-by: Henri-Damien LAURENT <[email protected]> --- reports/guided_reports.pl | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/reports/guided_reports.pl b/reports/guided_reports.pl index 65c4110..eb50d65 100755 --- a/reports/guided_reports.pl +++ b/reports/guided_reports.pl @@ -403,7 +403,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) { + if ($#$errors == -1) { $no_html=1; print $input->header( -type => 'application/octet-stream', -attachment=>'reportresults.csv' -- 1.5.6.3 _______________________________________________ Koha-patches mailing list [email protected] http://lists.koha.org/mailman/listinfo/koha-patches
