]> git.koha-community.org Git - koha.git/commit
Bug 31244: 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)
committerTomas Cohen Arazi <tomascohen@theke.io>
Thu, 28 Jul 2022 13:13:54 +0000 (10:13 -0300)
commit1ae5454b01f2a5cfac105b056bc2a8d72ac444a8
tree6ada9450ad68ab3443b691e176c79601e77b04ed
parenta7272f988679904d3f018550a73719fc102b3425
Bug 31244: 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>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
C4/Auth.pm