From 491843a058146023ae15cbfa463c77ea8762afd3 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. --- C4/Auth.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C4/Auth.pm b/C4/Auth.pm index 9d3e5761f45..c9737eddc29 100644 --- a/C4/Auth.pm +++ b/C4/Auth.pm @@ -884,7 +884,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.20.1