From acbc7a677cea94c78aae80417e285ac478e08629 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Oudot?= Date: Wed, 2 Dec 2009 09:01:17 +0000 Subject: [PATCH] Correct warning for Lemonldap::NG::Common in make test --- modules/lemonldap-ng-common/lib/Lemonldap/NG/Common/Conf.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/lemonldap-ng-common/lib/Lemonldap/NG/Common/Conf.pm b/modules/lemonldap-ng-common/lib/Lemonldap/NG/Common/Conf.pm index 828142304..17e8e0b8a 100644 --- a/modules/lemonldap-ng-common/lib/Lemonldap/NG/Common/Conf.pm +++ b/modules/lemonldap-ng-common/lib/Lemonldap/NG/Common/Conf.pm @@ -53,7 +53,9 @@ sub new { %$self = %{ $_[0] }; } else { - %$self = @_; + if (defined @_ and ($#_>0) ) { + %$self = @_; + } } unless ( $self->{mdone} ) { $self->_readConfFile( $self->{confFile} ) unless ( $self->{type} );