Fix authentication problem in previous commit; userenv->{} should not be used before...
authorRyan Higgins <rch@liblime.com>
Mon, 9 Jun 2008 22:04:23 +0000 (17:04 -0500)
committerJoshua Ferraro <jmf@liblime.com>
Tue, 10 Jun 2008 13:22:21 +0000 (08:22 -0500)
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
tools/holidays.pl

index f1a9861..6cc26fa 100755 (executable)
@@ -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 &&