Bug 18443: Get rid of warning 'uninitialized value $user' in C4/Auth.pm
authorMarc Véron <veron@veron.ch>
Tue, 18 Apr 2017 07:21:45 +0000 (09:21 +0200)
committerJulian Maurice <julian.maurice@biblibre.com>
Wed, 10 May 2017 10:05:28 +0000 (12:05 +0200)
commit8fd58517a24d07ba2f32771e095646560d3f588d
treecc5d7e658fbd2bb6e0b30cc8a03ff90007ede2b3
parentfe254c46d34d11173925beb63126210aa561fc29
Bug 18443: Get rid of warning 'uninitialized value $user' in C4/Auth.pm

When logging out from OPAC, plack-error.log log and/or opac-error.log
complain about 'uninitialized value $user' in C4/Auth.pm line 187. The
warning is not necessary, this patch removes it.

To test:
- try to trigger warning
- apply patch
- verify that warning no longer occurs
- prove t/db_dependent/Auth.t
- verifiy that SCO still behaves like before (especially if
  you break out from sco path)

Signed-off-by: Owen Leonard <oleonard@myacpl.org>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Mason James <mtj@kohaaloha.com>
(cherry picked from commit ab4d7d6987fd1d8a3f6e42e5afa258845f8cf934)
Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>
C4/Auth.pm