diff --git a/circ/circulation.pl b/circ/circulation.pl index c82a96889e..c7d42bb708 100755 --- a/circ/circulation.pl +++ b/circ/circulation.pl @@ -306,7 +306,9 @@ if ($patron) { $template->param( age_high => $patron->category->upperagelimit ); } - unless ( Koha::Patron::Categories->search_with_library_limits( { 'me.categorycode' => $patron->categorycode } )->count ) { + unless ( + Koha::Patron::Categories->search_with_library_limits( { 'me.categorycode' => $patron->categorycode } )->count ) + { $template->param( limited_category => 1 ); } } diff --git a/members/moremember.pl b/members/moremember.pl index e7545499b7..1c6f8e7c20 100755 --- a/members/moremember.pl +++ b/members/moremember.pl @@ -138,7 +138,8 @@ $template->param( csrf_token => Koha::Token->new->generate_csrf({ session_id => $input->cookie('CGISESSID'),}), ); -unless ( Koha::Patron::Categories->search_with_library_limits( { 'me.categorycode' => $patron->categorycode } )->count ) { +unless ( Koha::Patron::Categories->search_with_library_limits( { 'me.categorycode' => $patron->categorycode } )->count ) +{ $template->param( limited_category => 1 ); }