}
}
-my $issues = GetPendingIssues($member); # FIXME: wasteful call when really, we only want the count
-my $countissues = scalar(@$issues);
-
my $charges = $patron->account->non_issues_charges;
+my $countissues = $patron->pending_checkouts->count;
my $userenv = C4::Context->userenv;
if ($patron->category->category_type eq "S") {