From 07a4446f2f3fcbb22bd41a90f21e808e1c57eadc Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Fri, 3 Nov 2023 12:10:42 -0400 Subject: [PATCH] Bug 34977: (QA follow-up) Tidy code Signed-off-by: Kyle M Hall Signed-off-by: Tomas Cohen Arazi --- patron_lists/delete.pl | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/patron_lists/delete.pl b/patron_lists/delete.pl index 56aa9ba2ca..e7c227ea1f 100755 --- a/patron_lists/delete.pl +++ b/patron_lists/delete.pl @@ -29,22 +29,22 @@ my $cgi = CGI->new; my ( $template, $loggedinuser, $cookie ) = get_template_and_user( { - template_name => "patron_lists/lists.tt", - query => $cgi, - type => "intranet", + template_name => "patron_lists/lists.tt", + query => $cgi, + type => "intranet", flagsrequired => { tools => 'manage_patron_lists' }, } ); -my $id = $cgi->param('patron_list_id'); +my $id = $cgi->param('patron_list_id'); my @lists_ids = $cgi->multi_param('patron_lists_ids'); -if (defined $id && $id ne '') { - DelPatronList({ patron_list_id => $id }); +if ( defined $id && $id ne '' ) { + DelPatronList( { patron_list_id => $id } ); } if (@lists_ids) { foreach my $list_id (@lists_ids) { - DelPatronList({ patron_list_id => $list_id }); + DelPatronList( { patron_list_id => $list_id } ); } } -- 2.39.5