From b3ce3ad0c105c022cc9b048a5f93c7eaaa0f4931 Mon Sep 17 00:00:00 2001 From: Dobrica Pavlinusic Date: Wed, 29 Apr 2009 11:47:13 +0000 Subject: [PATCH] fix handling of last entry if there is none --- lib/LDAP/Koha.pm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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 ); -- 2.20.1