Bug 36376: (QA follow-up) Tidy

Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
(cherry picked from commit 2e6a4a555b)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
This commit is contained in:
Nick Clemens 2024-04-01 12:53:01 +00:00 committed by Fridolin Somers
parent ebd8a50e6e
commit 768701bf1d
2 changed files with 5 additions and 2 deletions

View File

@ -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 );
}
}

View File

@ -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 );
}