diff --git a/members/summary-print.pl b/members/summary-print.pl index 82b1ca24dc..14df30f9f8 100755 --- a/members/summary-print.pl +++ b/members/summary-print.pl @@ -67,7 +67,7 @@ $template->param( accounts => $accts, totaldue => $total, - issues => build_issue_data( GetPendingIssues($borrowernumber) ), + issues => build_issue_data( $borrowernumber ), totalprice => $totalprice, reserves => build_reserve_data( $holds_rs ), @@ -76,7 +76,8 @@ $template->param( output_html_with_http_headers $input, $cookie, $template->output; sub build_issue_data { - my $issues = shift; + my ( $borrowernumber ) = @_; + my $issues = GetPendingIssues( $borrowernumber ); my $return = [];