- Add a "else" block for the debug message, else it will be printed even in non multi mode.
This commit is contained in:
parent
4739155295
commit
e778b9842f
|
@ -385,7 +385,9 @@ sub ldap {
|
||||||
unless ( $self->{_multi} ) {
|
unless ( $self->{_multi} ) {
|
||||||
return $self->{ldap} if ( ref( $self->{ldap} ) );
|
return $self->{ldap} if ( ref( $self->{ldap} ) );
|
||||||
}
|
}
|
||||||
|
else {
|
||||||
$self->lmLog("LDAP Cache disabled in multi mode", 'debug');
|
$self->lmLog("LDAP Cache disabled in multi mode", 'debug');
|
||||||
|
}
|
||||||
if ( $self->{ldap} = Lemonldap::NG::Portal::_LDAP->new($self)
|
if ( $self->{ldap} = Lemonldap::NG::Portal::_LDAP->new($self)
|
||||||
and my $mesg = $self->{ldap}->bind )
|
and my $mesg = $self->{ldap}->bind )
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue
Block a user