fixed error messages on deletion

This commit is contained in:
Roland Gruber 2005-07-26 09:49:31 +00:00
parent fcdae9777e
commit 6ccf0e37da
1 changed files with 1 additions and 0 deletions

View File

@ -630,6 +630,7 @@ class posixAccount extends baseModule {
$return = array(); $return = array();
// remove memberUids if set // remove memberUids if set
$groups = $_SESSION['cache']->get_cache('memberUid', 'posixGroup', 'group'); $groups = $_SESSION['cache']->get_cache('memberUid', 'posixGroup', 'group');
if (!is_array($groups)) return $return;
$DNs = array_keys($groups); $DNs = array_keys($groups);
for ($i=0; $i<count($DNs); $i++) { for ($i=0; $i<count($DNs); $i++) {
if (in_array($this->attributes['uid'][0], $groups[$DNs[$i]])) $return[$DNs[$i]]['remove']['memberUid'][] = $this->attributes['uid'][0]; if (in_array($this->attributes['uid'][0], $groups[$DNs[$i]])) $return[$DNs[$i]]['remove']['memberUid'][] = $this->attributes['uid'][0];