Code

Really fixed it
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 16 Apr 2008 16:24:03 +0000 (16:24 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 16 Apr 2008 16:24:03 +0000 (16:24 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10520 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-si/modules/SIPackages.pm

index 73236e0d031ac2e54b1e8b82cb567e64a39c430e..5861160481eb0853523a1b24a91fb41fec7aef4c 100644 (file)
@@ -732,8 +732,8 @@ sub new_ldap_config {
        }
 
        # Do we need to look at an object class?
-       if (length(@servers) < 1){
-        $mesg = $ldap_handle->search( base   => $ldap_base,
+       if (not defined @servers){
+               $mesg = $ldap_handle->search( base   => $ldap_base,
                        scope  => 'sub',
                        attrs => ['dn', 'gotoLdapServer', 'FAIclass'],
                        filter => "(&(objectClass=gosaGroupOfNames)(member=$dn))");