Bug 9745 - don't nuke translated strings in permissions on DB upgrade
[koha.git] / serials / serials-search.pl
index aaf64e6..bc84ed6 100755 (executable)
@@ -106,7 +106,7 @@ my $branches = GetBranches();
 my @branches_loop;
 foreach (sort keys %$branches){
     my $selected = 0;
-    $selected = 1 if( $branch eq $_ );
+    $selected = 1 if( defined $branch and $branch eq $_ );
     push @branches_loop, {
         branchcode  => $_,
         branchname  => $branches->{$_}->{'branchname'},