minor fix - don't declare variables in a conditional
Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
This commit is contained in:
parent
82b3646e2e
commit
755bf6aca7
|
|
@ -40,8 +40,9 @@ my $query = new CGI;
|
|||
|
||||
if (!C4::Context->userenv){
|
||||
my $sessionID = $query->cookie("CGISESSID");
|
||||
my $session = get_session($sessionID);
|
||||
if ($session->param('branch') eq 'NO_LIBRARY_SET'){
|
||||
my $session;
|
||||
$session = get_session($sessionID) if $sessionID;
|
||||
if (!$session or $session->param('branch') eq 'NO_LIBRARY_SET'){
|
||||
# no branch set we can't transfer
|
||||
print $query->redirect("/cgi-bin/koha/circ/selectbranchprinter.pl");
|
||||
exit;
|
||||
|
|
|
|||
Loading…
Reference in New Issue