Bug 6088: remove Perl warning
authorPaul Poulain <paul.poulain@biblibre.com>
Thu, 7 Apr 2011 11:09:27 +0000 (11:09 +0000)
committerChris Nighswonger <chris.nighswonger@gmail.com>
Sat, 16 Apr 2011 18:42:50 +0000 (14:42 -0400)
caused by use warnings;

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
(cherry picked from commit 65c21fa52f9a44920e341f39b23bd877f5c87c84)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
acqui/neworderempty.pl

index 61f0962..7028ee2 100755 (executable)
@@ -220,7 +220,7 @@ foreach my $thisbranch ( sort {$branches->{$a}->{'branchname'} cmp $branches->{$
         value      => $thisbranch,
         branchname => $branches->{$thisbranch}->{'branchname'},
     );
-    $row{'selected'} = 1 if( $thisbranch eq $data->{branchcode}) ;
+    $row{'selected'} = 1 if( $thisbranch && $data->{branchcode} && $thisbranch eq $data->{branchcode}) ;
     push @branchloop, \%row;
 }
 $template->param( branchloop => \@branchloop );