From af7e41d1142573666d302a8475274ea58e5c99f4 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Tue, 13 Jul 2021 11:42:03 +0200 Subject: [PATCH] Bug 28606: Remove warning from C4::Auth 887 [WARN] Use of uninitialized value in sprintf at /kohadevbox/koha/C4/Auth.pm line 887. Signed-off-by: Jonathan Druart --- C4/Auth.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C4/Auth.pm b/C4/Auth.pm index 9fb674ea59..4ca4935ea1 100644 --- a/C4/Auth.pm +++ b/C4/Auth.pm @@ -885,7 +885,7 @@ sub checkauth { $session->param('desk_id'), $session->param('desk_name'), $session->param('register_id'), $session->param('register_name') ); - Koha::Logger->get->debug(sprintf "AUTH_SESSION: (%s)\t%s %s - %s", map { $session->param($_) } qw(cardnumber firstname surname branch)); + Koha::Logger->get->debug(sprintf "AUTH_SESSION: (%s)\t%s %s - %s", map { $session->param($_) || q{} } qw(cardnumber firstname surname branch)); $ip = $session->param('ip'); $lasttime = $session->param('lasttime'); $userid = $s_userid; -- 2.39.5