From 67e3b861819f62d125f40564fe6a7370ee47e219 Mon Sep 17 00:00:00 2001 From: Chris Cormack Date: Thu, 14 Apr 2011 15:03:37 +1200 Subject: [PATCH] Fix for Reserves.t allow the tests to run without a logged in user --- C4/Circulation.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C4/Circulation.pm b/C4/Circulation.pm index b977524b3f..9a2db4c518 100644 --- a/C4/Circulation.pm +++ b/C4/Circulation.pm @@ -1924,7 +1924,7 @@ sub _GetCircControlBranch { my $branch; if ($circcontrol eq 'PickupLibrary') { - $branch= C4::Context->userenv->{'branch'}; + $branch= C4::Context->userenv->{'branch'} if C4::Context->userenv; } elsif ($circcontrol eq 'PatronLibrary') { $branch=$borrower->{branchcode}; } else { -- 2.20.1