Bug 19080: Fix perlcritic in routing-lists.pl
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Wed, 23 Aug 2017 14:42:34 +0000 (11:42 -0300)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Fri, 25 Aug 2017 14:03:37 +0000 (11:03 -0300)
Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
members/routing-lists.pl

index 5726a20..b03be94 100755 (executable)
@@ -48,7 +48,8 @@ my $borrowernumber = $query->param('borrowernumber');
 
 my $branch = C4::Context->userenv->{'branch'};
 
-my $patron = Koha::Patrons->find( $borrowernumber ) if $borrowernumber;
+my $patron;
+$patron = Koha::Patrons->find( $borrowernumber ) if $borrowernumber;
 unless ( $patron ) {
     print $query->redirect("/cgi-bin/koha/circ/circulation.pl?borrowernumber=$borrowernumber");
     exit;