Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Skip branch IP checking if no IP defined

  • Loading branch information...
commit 773fcccb52e6eedb4fd75dd6986082393fa3b1b5 1 parent 15b263c
@ctfliblime ctfliblime authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  C4/Branch.pm
View
1  C4/Branch.pm
@@ -651,6 +651,7 @@ sub GetBranchByIp {
foreach my $branch (values %{GetBranches()}) {
my $library_cidr = $collection->new_list();
+ next if !$branch->{branchip};
map {$collection->add_range($library_cidr, $_, 0)} split(/\n/, $branch->{branchip});
$collection->process_intersection();
return $branch->{branchcode} if ($collection->get_next_intersection_range());
Please sign in to comment.
Something went wrong with that request. Please try again.