]> 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)
committerLucas Gass <lucas@bywatersolutions.com>
Fri, 2 Sep 2022 20:27:56 +0000 (20:27 +0000)
commite0b8c2fcc863f4bfe495b1a5872bf5aa7f427448
tree74dca52e21c88546580c29957679052b171d2e07
parent1ce81043ca1abbfcfc21ec3aca6d162dadad20ba
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>
(cherry picked from commit 1ae5454b01f2a5cfac105b056bc2a8d72ac444a8)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
C4/Auth.pm