Bugfix: Stop C4::Koha from filling the log with pesky warns
authorChris Nighswonger <cnighswonger@foundations.edu>
Thu, 28 Jan 2010 19:14:52 +0000 (14:14 -0500)
committerGalen Charlton <gmcharlt@gmail.com>
Wed, 3 Feb 2010 00:16:06 +0000 (19:16 -0500)
Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
C4/Koha.pm

index 18af528..39404a5 100644 (file)
@@ -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'}) {