From 4d4d5aeb2b197dd66780e2748d824e2481faf363 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Oudot?= Date: Mon, 6 Jun 2016 09:09:29 +0000 Subject: [PATCH] Remove warning 'Use of uninitialized value' when using zeroconf (#1030) --- lemonldap-ng-manager/lib/Lemonldap/NG/Manager/Conf.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lemonldap-ng-manager/lib/Lemonldap/NG/Manager/Conf.pm b/lemonldap-ng-manager/lib/Lemonldap/NG/Manager/Conf.pm index e92cb7490..62e591533 100644 --- a/lemonldap-ng-manager/lib/Lemonldap/NG/Manager/Conf.pm +++ b/lemonldap-ng-manager/lib/Lemonldap/NG/Manager/Conf.pm @@ -687,7 +687,7 @@ sub metadatas { my $id = -1; my ($ind) = map { $id++; $_ == $res->{cfgNum} ? ($id) : () } @a; if ($ind) { $res->{prev} = $a[ $ind - 1 ]; } - if ( $ind < $#a ) { $res->{next} = $a[ $ind + 1 ]; } + if ( $ind and $ind < $#a ) { $res->{next} = $a[ $ind + 1 ]; } $self->userNotice( 'User ' . $self->userId($req) . ' ask for configuration metadatas ('