LEMONLDAP::NG : fix bug #311849

This commit is contained in:
Clément Oudot 2008-11-18 12:47:30 +00:00
parent cae4cbade0
commit 19b5fa1190

View File

@ -10,7 +10,7 @@ sub ldap {
unless ( ref( $self->{ldap} ) ) {
my $mesg = $self->{ldap}->bind
if ( $self->{ldap} = Lemonldap::NG::Portal::_LDAP->new($self) );
if ( $mesg->code != 0 ) {
if ( !$mesg || $mesg->code != 0 ) {
return 0;
}
}