Bug 31244: [21.11.x] Fix 500 if logout and not logged in
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Tue, 26 Jul 2022 12:55:02 +0000 (14:55 +0200)
committerArthur Suzuki <arthur.suzuki@biblibre.com>
Fri, 27 Jan 2023 10:06:32 +0000 (11:06 +0100)
commite825b301e3a386dca0bdf03af1314aa41c756ccb
tree58eb76b37f3a5b44bd2dfba111faee5c9deaa523
parentc0fa919492cb41fa99084eab7b20f599d7c78274
Bug 31244: [21.11.x] Fix 500 if logout and not logged in

Can't use an undefined value as a HASH reference at /kohadevbox/koha/C4/Auth.pm line 985
        C4::Auth::checkauth('CGI=HASH(0x5603b7dc4300)', 0, 'HASH(0x5603b2633238)', 'intranet', undef, 'intranet-main.tt') called at /kohadevbox/koha/C4/Auth.pm line 186
        C4::Auth::get_template_and_user('HASH(0x5603b7b83d08)') called at /kohadevbox/koha/mainpage.pl line 40

Test plan:
Open a private window
Hit /cgi-bin/koha/mainpage.pl?logout.x=1

Signed-off-by: Sally <sally.healey@cheshiresharedservices.gov.uk>
Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>
Rebased for 21.11.x
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
C4/Auth.pm
C4/Auth_with_shibboleth.pm