[Koha-patches] [PATCH] Bugfix: Stop C4::Koha from filling the log with pesky warns

Chris Nighswonger cnighswonger at foundations.edu
Thu Jan 28 20:14:52 CET 2010


---
 C4/Koha.pm |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/C4/Koha.pm b/C4/Koha.pm
index 31bd678..ae89770 100644
--- a/C4/Koha.pm
+++ b/C4/Koha.pm
@@ -1086,7 +1086,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'}) {
-- 
1.6.0.4




More information about the Koha-patches mailing list