From 03437de4aba87642a8b6d8e5043b27e6a2531c03 Mon Sep 17 00:00:00 2001 From: ivan Date: Thu, 17 Jan 2008 22:04:33 +0000 Subject: [PATCH] fix error from merging --- httemplate/search/cust_bill_event.cgi | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/httemplate/search/cust_bill_event.cgi b/httemplate/search/cust_bill_event.cgi index 06a52dc5d..7d86468bc 100644 --- a/httemplate/search/cust_bill_event.cgi +++ b/httemplate/search/cust_bill_event.cgi @@ -64,8 +64,10 @@ %> <%init> +my $curuser = $FS::CurrentUser::CurrentUser; + die "access denied" - unless $FS::CurrentUser::CurrentUser->access_right('Billing event reports'); + unless $curuser->access_right('Billing event reports'); my $title = $cgi->param('failed') ? 'Failed invoice events' @@ -113,8 +115,6 @@ my $count_sql = "SELECT COUNT(*) FROM cust_bill_event $join $where"; my $conf = new FS::Conf; -my $failed = $cgi->param('failed'); - my $html_init = join("\n", map { ( my $action = $_ ) =~ s/_$//; include('/elements/progress-init.html', -- 2.20.1