fix error from merging
authorivan <ivan>
Thu, 17 Jan 2008 22:04:33 +0000 (22:04 +0000)
committerivan <ivan>
Thu, 17 Jan 2008 22:04:33 +0000 (22:04 +0000)
httemplate/search/cust_bill_event.cgi

index 06a52dc..7d86468 100644 (file)
 %>
 <%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',