From: Ryan Higgins Date: Mon, 9 Jun 2008 22:04:23 +0000 (-0500) Subject: Fix authentication problem in previous commit; userenv->{} should not be used before... X-Git-Tag: v3.00.00-stableRC1~153 X-Git-Url: http://git.rot13.org/?a=commitdiff_plain;h=ecb8354ebe81e84e67c74b8ca45f6b52a1a39fe4;p=koha.git Fix authentication problem in previous commit; userenv->{} should not be used before check_auth is called. Signed-off-by: Joshua Ferraro --- diff --git a/tools/holidays.pl b/tools/holidays.pl index f1a98614b0..6cc26fa28a 100755 --- a/tools/holidays.pl +++ b/tools/holidays.pl @@ -27,10 +27,6 @@ use C4::Calendar; my $input = new CGI; -my $branch= $input->param('branch') || C4::Context->userenv->{'branch'}; - - - my $dbh = C4::Context->dbh(); # Get the template to use my ($template, $loggedinuser, $cookie) @@ -42,6 +38,7 @@ my ($template, $loggedinuser, $cookie) debug => 1, }); +my $branch= $input->param('branch') || C4::Context->userenv->{'branch'}; # Set all the branches. my $onlymine=(C4::Context->preference('IndependantBranches') && C4::Context->userenv &&