From 104ed9ed0ebc797631bb5f51843cd43f652ed344 Mon Sep 17 00:00:00 2001 From: Victor Grousset/tuxayo Date: Thu, 15 Feb 2024 04:18:37 +0100 Subject: [PATCH] Bug 35904: (QA follow-up): tidy up code Signed-off-by: Martin Renvoize (cherry picked from commit beb0f55006d60eb269ffd5ca6148a8293f8104df) Signed-off-by: Fridolin Somers --- C4/Auth.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/C4/Auth.pm b/C4/Auth.pm index ee0e81c057..c099dbc28c 100644 --- a/C4/Auth.pm +++ b/C4/Auth.pm @@ -791,7 +791,7 @@ sub checkauth { my $type = shift; my $emailaddress = shift; my $template_name = shift; - my $params = shift || {}; # do_not_print + my $params = shift || {}; # do_not_print $type = 'opac' unless $type; if ( $type eq 'opac' && !C4::Context->preference("OpacPublic") ) { @@ -1334,7 +1334,7 @@ sub checkauth { $uri->query_param_delete('password'); $uri->query_param_delete('koha_login_context'); unless ( $params->{do_not_print} ) { - print $query->redirect(-uri => $uri->as_string, -cookie => $cookie, -status=>'303 See other'); + print $query->redirect( -uri => $uri->as_string, -cookie => $cookie, -status => '303 See other' ); safe_exit; } } -- 2.39.5