From 1e6ae8e650df15efef77d36033d51d77172ca46c Mon Sep 17 00:00:00 2001 From: Galen Charlton Date: Wed, 27 May 2009 06:53:17 -0500 Subject: [PATCH] minor fix - don't declare variables in a conditional Signed-off-by: Galen Charlton --- circ/branchtransfers.pl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/circ/branchtransfers.pl b/circ/branchtransfers.pl index 08380a1912..da8ecc0534 100755 --- a/circ/branchtransfers.pl +++ b/circ/branchtransfers.pl @@ -41,7 +41,8 @@ my $query = new CGI; if (!C4::Context->userenv){ my $sessionID = $query->cookie("CGISESSID"); - my $session = get_session($sessionID) if $sessionID; + 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"); -- 2.39.5