From: cajus Date: Wed, 30 Jan 2008 14:39:14 +0000 (+0000) Subject: Simplify array use X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=629239948abc503504990cd8e124176a38e1da29;p=gosa.git Simplify array use git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@8671 594d385d-05f5-0310-b6e9-bd551577e9d8 --- 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'],