From 6e04f2e6bcdfe38a342086628aaa1249fb707047 Mon Sep 17 00:00:00 2001 From: hickert Date: Fri, 21 Aug 2009 10:55:45 +0000 Subject: [PATCH] Updated class_acl.inc modifications. -caused some warnings. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14103 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/include/class_acl.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gosa-core/include/class_acl.inc b/gosa-core/include/class_acl.inc index b2e18704c..b2e3ca093 100644 --- a/gosa-core/include/class_acl.inc +++ b/gosa-core/include/class_acl.inc @@ -89,8 +89,8 @@ class acl extends plugin while ($attrs= $ldap->fetch()){ // Allow objects without cn to be listed without causing an error. - if(!isset($attrs['cn'][0])){ - $this->users['U:'.$attrs['dn']]= $attrs['uid'][0]; + if(!isset($attrs['uid'][0])){ + $this->users['U:'.$attrs['dn']]= $attrs['cn'][0]; }else{ $this->users['U:'.$attrs['dn']]= $attrs['cn'][0].' ['.$attrs['uid'][0].']'; } -- 2.30.2