From 4e65ac596553941cd0f44c508cbea2920fe521f4 Mon Sep 17 00:00:00 2001 From: Chris Nighswonger Date: Thu, 28 Jan 2010 14:14:52 -0500 Subject: [PATCH] Bugfix: Stop C4::Koha from filling the log with pesky warns Signed-off-by: Galen Charlton --- C4/Koha.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C4/Koha.pm b/C4/Koha.pm index 18af528a70..39404a58f8 100644 --- a/C4/Koha.pm +++ b/C4/Koha.pm @@ -1111,7 +1111,7 @@ sub GetAuthorisedValues { my $sth = $dbh->prepare($query); $sth->execute; while (my $data=$sth->fetchrow_hashref) { - if ($selected eq $data->{'authorised_value'} ) { + if ($selected && $selected eq $data->{'authorised_value'} ) { $data->{'selected'} = 1; } if ($opac && $data->{'lib_opac'}) { -- 2.39.5