]> git.koha-community.org Git - koha.git/commit
Bug 25506: Fix for "Use of uninitialized value" in about.pl
authorSlava Shishkin <slavashishkin@gmail.com>
Thu, 14 May 2020 14:53:47 +0000 (17:53 +0300)
committerAleisha Amohia <aleishaamohia@hotmail.com>
Tue, 9 Jun 2020 03:13:10 +0000 (03:13 +0000)
commit95c56339b9d0de7a8b5d10a77b52917ec79ff1fe
tree0a33e2496f9d710c02138b66cc46b0bd73e8045e
parent74b4b64bf94ec60c2b6a01e4dbfad67216ffeeb1
Bug 25506: Fix for "Use of uninitialized value" in about.pl

Perl warning on the "About Koha" page:

Use of uninitialized value in string eq
at /home/vagrant/kohaclone/about.pl line 220.

Fixed by adding additional precheck for
C4::Context->config('zebra_auth_index_mode') being Perl's "true".

To test:
    1) Ensure you don't have "<zebra_auth_index_mode>...
       </zebra_auth_index_mode>" in your koha-conf.xml so you will have
       "C4::Context->config" returning "undef"
    2) Go to the "About Koha" page.
    3) Observe the warning in the log file.
    4) Apply patch.
    5) Repeat step 2.
    6) Check that previous warning was suppressed.

Signed-off-by: Andreas Roussos <a.roussos@dataly.gr>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
(cherry picked from commit 67ff0f72854d4dabdda8cb59696f15e7b5d88c2a)
Signed-off-by: Aleisha Amohia <aleishaamohia@hotmail.com>
about.pl