From 1b98e1e2c9d729aa90334a8152f6344497c031aa Mon Sep 17 00:00:00 2001 From: hickert Date: Thu, 7 Sep 2006 03:33:29 +0000 Subject: [PATCH] Fixed undefined index accessTo git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@4608 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/personal/posix/class_posixAccount.inc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/personal/posix/class_posixAccount.inc b/plugins/personal/posix/class_posixAccount.inc index 74d85a2eb..1392ac7c7 100644 --- a/plugins/personal/posix/class_posixAccount.inc +++ b/plugins/personal/posix/class_posixAccount.inc @@ -1041,7 +1041,8 @@ class posixAccount extends plugin } $ldap->cd($this->config->current['BASE']); - $ldap->search("(&(objectClass=gosaUserTemplate)(uid=".$template."))", array("cn","accessTo")); + $ldap->search("(&(objectClass=gosaUserTemplate)(uid=".$template.")(accessTo=*))", array("cn","accessTo")); + while($attr = $ldap->fetch()){ $tmp = $attr['accessTo']; unset ($tmp['count']); -- 2.30.2