X-Git-Url: http://git.rot13.org/?p=virtual-ldap;a=blobdiff_plain;f=lib%2FLDAP%2FKoha.pm;h=38e4428ef489179d0d22ab6fa9fa1cd17df232f3;hp=7c2791c56b434f2ef7880bf32c27e89f4afb8fb3;hb=b3ce3ad0c105c022cc9b048a5f93c7eaaa0f4931;hpb=944ac5011bf7f15d11f6768e2aafa4545b2d974f diff --git a/lib/LDAP/Koha.pm b/lib/LDAP/Koha.pm index 7c2791c..38e4428 100644 --- a/lib/LDAP/Koha.pm +++ b/lib/LDAP/Koha.pm @@ -247,8 +247,10 @@ sub search { } - warn "### last entry ",$entry->dump( \*STDERR ); - push @entries, $entry; + if ( $entry ) { + warn "### last entry ",$entry->dump( \*STDERR ); + push @entries, $entry; + } } else { warn "UNKNOWN request: ",dump( $reqData );