From: Dobrica Pavlinusic Date: Wed, 29 Apr 2009 11:47:13 +0000 (+0000) Subject: fix handling of last entry if there is none X-Git-Url: http://git.rot13.org/?p=virtual-ldap;a=commitdiff_plain;h=b3ce3ad0c105c022cc9b048a5f93c7eaaa0f4931 fix handling of last entry if there is none --- 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 );