MP constant no more exists (#595)

This commit is contained in:
Xavier Guimard 2016-04-27 06:20:32 +00:00
parent cbed194561
commit 35fbaefbe3

View File

@ -440,7 +440,9 @@ sub conditionSub {
# Since filter exists only with Apache>=2, logout_app and logout_app_sso
# targets are available only for it.
# This error can also appear with Manager configured as CGI script
if ( $cond =~ /^logout_app/i and $class->MP() < 2 ) {
if ( $cond =~ /^logout_app/i
and not $class->isa('Lemonldap::NG::Handler::ApacheMP2') )
{
$class->lmLog( "Rules logout_app and logout_app_sso require Apache>=2",
'warn' );
return ( sub { 1 }, 0 );