Bugfix: Stop C4::Koha from filling the log with pesky warns

Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
This commit is contained in:
Chris Nighswonger 2010-01-28 14:14:52 -05:00 committed by Galen Charlton
parent e692dfc18a
commit 4e65ac5965

View file

@ -1111,7 +1111,7 @@ sub GetAuthorisedValues {
my $sth = $dbh->prepare($query); my $sth = $dbh->prepare($query);
$sth->execute; $sth->execute;
while (my $data=$sth->fetchrow_hashref) { while (my $data=$sth->fetchrow_hashref) {
if ($selected eq $data->{'authorised_value'} ) { if ($selected && $selected eq $data->{'authorised_value'} ) {
$data->{'selected'} = 1; $data->{'selected'} = 1;
} }
if ($opac && $data->{'lib_opac'}) { if ($opac && $data->{'lib_opac'}) {