From 64e39c6a4bc5ebe29cde071e80cf7057705c41d9 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 --- reports/catalogue_stats.pl | 6 ++---- 1 files 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.2.5