From 629239948abc503504990cd8e124176a38e1da29 Mon Sep 17 00:00:00 2001 From: cajus Date: Wed, 30 Jan 2008 14:39:14 +0000 Subject: [PATCH] Simplify array use git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@8671 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-si/modules/ServerPackages.pm | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gosa-si/modules/ServerPackages.pm b/gosa-si/modules/ServerPackages.pm index c4de90d9a..c06aba4f0 100644 --- a/gosa-si/modules/ServerPackages.pm +++ b/gosa-si/modules/ServerPackages.pm @@ -744,8 +744,7 @@ sub new_ldap_config { my $base; # Do we need to look at an object class? - my $cnt= @servers; - if ($cnt < 1){ + if (length(@servers) < 1){ $mesg = $ldap->search( base => $ldap_base, scope => 'sub', attrs => ['dn', 'gotoLdapServer'], -- 2.30.2