From 889cb315e4829991b06bed5236350d8d94fd3e73 Mon Sep 17 00:00:00 2001 From: cajus Date: Thu, 3 Dec 2009 15:43:05 +0000 Subject: [PATCH] Fix role removal git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14868 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/plugins/personal/generic/class_user.inc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gosa-core/plugins/personal/generic/class_user.inc b/gosa-core/plugins/personal/generic/class_user.inc index 2ba03a1f2..cefc0113a 100644 --- a/gosa-core/plugins/personal/generic/class_user.inc +++ b/gosa-core/plugins/personal/generic/class_user.inc @@ -710,6 +710,7 @@ class user extends plugin while ($ldap->fetch()){ $og= new ogroup($this->config, $ldap->getDN()); unset($og->member[$this->dn]); + $og->member= array_values($og->member); $og->save (); } @@ -721,7 +722,7 @@ class user extends plugin $key = array_search($this->dn,$role->roleOccupant); if($key !== FALSE){ unset($role->roleOccupant[$key]); - $role->reload(); + $role->roleOccupant= array_values($role->roleOccupant); $role->save (); } } -- 2.30.2