Bug 31902: Next header row inside a thead
[koha-ffzg.git] / opac / opac-account.pl
index c675c2f..c47bd58 100755 (executable)
@@ -22,8 +22,8 @@
 use Modern::Perl;
 use CGI qw ( -utf8 );
 use C4::Members;
-use C4::Auth;
-use C4::Output;
+use C4::Auth qw( get_template_and_user );
+use C4::Output qw( output_html_with_http_headers );
 use Koha::Account::Lines;
 use Koha::Patrons;
 use Koha::Plugins;
@@ -50,7 +50,7 @@ if ( C4::Context->preference('AllowPatronToSetFinesVisibilityForGuarantor')
     my @relatives;
 
     # Filter out guarantees that don't want guarantor to see checkouts
-    foreach my $gr ( $patron->guarantee_relationships() ) {
+    foreach my $gr ( $patron->guarantee_relationships->as_list ) {
         my $g = $gr->guarantee;
         if ( $g->privacy_guarantor_fines ) {