From dbf501147f54971b15c8b65441b087bb67c259c4 Mon Sep 17 00:00:00 2001 From: Julian Maurice Date: Tue, 8 Jan 2013 14:03:28 +0100 Subject: [PATCH] Bug 7683: Fix plack compatibility Content-Type: text/plain; charset="utf-8" Signed-off-by: Paul Poulain Signed-off-by: Owen Leonard --- reports/catalogue_stats.pl | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/reports/catalogue_stats.pl b/reports/catalogue_stats.pl index 0954492..a92a046 100755 --- a/reports/catalogue_stats.pl +++ b/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', @@ -104,7 +104,7 @@ if ($do_it) { print $sep. $col->{totalcol}; } print $sep. @$results[0]->{total}; - exit(1); + exit; } } else { my $dbh = C4::Context->dbh; @@ -618,5 +618,3 @@ sub calculate { push @mainloop, \%globalline; return \@mainloop; } - -1; -- 1.7.9.5