---
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
_______________________________________________
Koha-patches mailing list
[email protected]
http://lists.koha.org/mailman/listinfo/koha-patches