projects
/
virtual-ldap
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
944ac50
)
fix handling of last entry if there is none
author
Dobrica Pavlinusic
<dpavlin@rot13.org>
Wed, 29 Apr 2009 11:47:13 +0000
(11:47 +0000)
committer
Dobrica Pavlinusic
<dpavlin@rot13.org>
Wed, 29 Apr 2009 11:47:13 +0000
(11:47 +0000)
lib/LDAP/Koha.pm
patch
|
blob
|
history
diff --git
a/lib/LDAP/Koha.pm
b/lib/LDAP/Koha.pm
index
7c2791c
..
38e4428
100644
(file)
--- 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 );
} else {
warn "UNKNOWN request: ",dump( $reqData );