]> git.koha-community.org Git - koha.git/commit
Bug 14709: Do not access to C4::Context->userenv from the commandline
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 24 Aug 2015 09:07:37 +0000 (10:07 +0100)
committerChris Cormack <chris@bigballofwax.co.nz>
Tue, 22 Sep 2015 01:27:20 +0000 (13:27 +1200)
commit01af0c4dc7b575f914753b265fc958f25ac30b9a
tree9679dddf1b664bab2a8e884c8c94dbcbb6ac10eb
parent25f30fec2d93b7c0678a131d65da3c3c8ae8c18c
Bug 14709: Do not access to C4::Context->userenv from the commandline

The script dies with
  Can't use an undefined value as a HASH reference at tools/export.pl
line 149.
if it is called from the command line.

This is introduced by bug 13040.

The C4::Context->userenv is not defined in this case.

Test plan:
Execute the script using the command line.
With the patch applies you should not get the error.

Signed-off-by: Joonas Kylmälä <j.kylmala@gmail.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@unc.edu.ar>
(cherry picked from commit 6ad59e7ab45bbd2858f4cfad83d862688a48e49b)
Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
tools/export.pl