[Koha-patches] [PATCH][HEAD] a more readable way to test an array size.
Nahuel Angelinetti
nahuel.angelinetti at biblibre.com
Wed Oct 15 11:03:25 CEST 2008
---
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 deeabe7..4ffc8f9 100755
--- a/reports/guided_reports.pl
+++ b/reports/guided_reports.pl
@@ -399,7 +399,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'
--
1.5.4.3
More information about the Koha-patches
mailing list