[Koha-patches] [PATCH] fixes many 'Use of uninitialized value in string eq at ...' warnings.. at admin/branches.pl line 242.

Mason James mason.loves.sushi at gmail.com
Mon Mar 16 12:49:01 CET 2009


---
 admin/branches.pl |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/admin/branches.pl b/admin/branches.pl
index 6ce54a3..8525f1a 100755
--- a/admin/branches.pl
+++ b/admin/branches.pl
@@ -231,8 +231,10 @@ sub editbranchform {
 
         # 	printer loop
         foreach my $thisprinter ( keys %$printers ) {
+
             my $selected = 1
-              if $oldprinter eq $printers->{$thisprinter}->{'printqueue'};
+              if $oldprinter and ( $oldprinter eq $printers->{$thisprinter} );
+
             my %row = (
                 value         => $thisprinter,
                 selected      => $selected,
-- 
1.5.6.5




More information about the Koha-patches mailing list