@@ -, +, @@ --- reports/acquisitions_stats.pl | 2 +- reports/bor_issues_top.pl | 2 +- reports/borrowers_out.pl | 4 ++-- reports/borrowers_stats.pl | 2 +- reports/cat_issues_top.pl | 4 ++-- reports/catalogue_out.pl | 2 +- reports/catalogue_stats.pl | 4 ++-- reports/issues_avg_stats.pl | 4 ++-- reports/issues_stats.pl | 2 +- reports/reserves_stats.pl | 2 +- reports/serials_stats.pl | 2 +- 11 files changed, 15 insertions(+), 15 deletions(-) --- a/reports/acquisitions_stats.pl +++ a/reports/acquisitions_stats.pl @@ -108,7 +108,7 @@ if ($do_it) { } print $sep. @$results[0]->{total}; } - exit(1); + exit; } else { my $dbh = C4::Context->dbh; --- a/reports/bor_issues_top.pl +++ a/reports/bor_issues_top.pl @@ -102,7 +102,7 @@ if ($do_it) { print join($sep, map {$_->{totalcol}} @$cols); print $sep.@$results[0]->{total}; } - exit(0); + exit; } my $dbh = C4::Context->dbh; --- a/reports/borrowers_out.pl +++ a/reports/borrowers_out.pl @@ -69,7 +69,7 @@ if ($do_it) { # Printing results to screen $template->param(mainloop => $results); output_html_with_http_headers $input, $cookie, $template->output; - exit(1); + exit; } else { # Printing to a csv file print $input->header(-type => 'application/vnd.sun.xml.calc', @@ -103,7 +103,7 @@ if ($do_it) { print $sep.$col->{totalcol}; } print $sep.@$results[0]->{total}; - exit(1); + exit; } # Displaying choices } else { --- a/reports/borrowers_stats.pl +++ a/reports/borrowers_stats.pl @@ -107,7 +107,7 @@ if ($do_it) { } print $sep.@$results[0]->{total}; } - exit(1); # exit after do_it, regardless + exit; # exit after do_it, regardless } else { my $dbh = C4::Context->dbh; my $req; --- a/reports/cat_issues_top.pl +++ a/reports/cat_issues_top.pl @@ -75,7 +75,7 @@ if ($do_it) { $template->param(mainloop => $results, limit => $limit); output_html_with_http_headers $input, $cookie, $template->output; - exit(1); + exit; } else { # Printing to a csv file print $input->header(-type => 'application/vnd.sun.xml.calc', @@ -108,7 +108,7 @@ if ($do_it) { print $sep.$col->{totalcol}; } print $sep.@$results[0]->{total}; - exit(1); + exit; } # Displaying choices } else { --- a/reports/catalogue_out.pl +++ a/reports/catalogue_out.pl @@ -96,7 +96,7 @@ if ($do_it) { } print $sep.@$results[0]->{total}; } - exit(1); # in either case, exit after do_it + exit; # in either case, exit after do_it } # Displaying choices (i.e., not do_it) --- a/reports/catalogue_stats.pl +++ a/reports/catalogue_stats.pl @@ -74,7 +74,7 @@ if ($do_it) { if ($output eq "screen"){ $template->param(mainloop => $results); output_html_with_http_headers $input, $cookie, $template->output; - exit(1); + exit; } else { print $input->header(-type => 'application/vnd.sun.xml.calc', -encoding => 'utf-8', @@ -102,7 +102,7 @@ if ($do_it) { print $sep.$col->{totalcol}; } print $sep.@$results[0]->{total}; - exit(1); + exit; } } else { my $dbh = C4::Context->dbh; --- a/reports/issues_avg_stats.pl +++ a/reports/issues_avg_stats.pl @@ -77,7 +77,7 @@ if ($do_it) { # Printing results to screen $template->param(mainloop => $results); output_html_with_http_headers $input, $cookie, $template->output; - exit(1); + exit; } else { # Printing to a csv file print $input->header(-type => 'application/vnd.sun.xml.calc', @@ -110,7 +110,7 @@ if ($do_it) { print $sep.$col->{totalcol}; } print $sep.@$results[0]->{total}; - exit(1); + exit; } # Displaying choices } else { --- a/reports/issues_stats.pl +++ a/reports/issues_stats.pl @@ -123,7 +123,7 @@ if ($do_it) { print map {$sep.$_->{totalcol}} @$cols; print $sep.@$results[0]->{total}; } - exit(1); # exit either way after $do_it + exit; # exit either way after $do_it } my $dbh = C4::Context->dbh; --- a/reports/reserves_stats.pl +++ a/reports/reserves_stats.pl @@ -130,7 +130,7 @@ if ($do_it) { print map {$sep.$_->{totalcol}} @$cols; print $sep.@$results[0]->{total}; } - exit(1); # exit either way after $do_it + exit; # exit either way after $do_it } my $dbh = C4::Context->dbh; --- a/reports/serials_stats.pl +++ a/reports/serials_stats.pl @@ -125,7 +125,7 @@ if($do_it){ print $item->{startdate}.$sep; print $item->{enddate}."\n"; } - exit(1); + exit; } }else{ ## We generate booksellers list --