- Add a "else" block for the debug message, else it will be printed even in non multi mode.

This commit is contained in:
Sandro Cazzaniga 2012-08-21 08:11:09 +00:00
parent 4739155295
commit e778b9842f

View File

@ -385,7 +385,9 @@ sub ldap {
unless ( $self->{_multi} ) {
return $self->{ldap} if ( ref( $self->{ldap} ) );
}
$self->lmLog("LDAP Cache disabled in multi mode", 'debug');
else {
$self->lmLog("LDAP Cache disabled in multi mode", 'debug');
}
if ( $self->{ldap} = Lemonldap::NG::Portal::_LDAP->new($self)
and my $mesg = $self->{ldap}->bind )
{