Code

Updated ACL handling
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 10 Dec 2010 17:04:31 +0000 (17:04 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 10 Dec 2010 17:04:31 +0000 (17:04 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20548 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/mail/admin/groups/mail/class_groupMail.inc

index aa453044596b6348131cc59e17e809657f1c74a5..67b7185f3dfa18255e7c51bc67c41cd51be3d663 100644 (file)
@@ -658,7 +658,9 @@ class mailgroup extends plugin
 
                 foreach($this->folder_acls as $user => $acl){
                     if($user == "__member__" || $user == "__anyone__") continue;
-                    $id = $this->aclPostToId[$user];
+
+                    $id = (isset($this->aclPostToId[$user])) ? $this->aclPostToId[$user] : -1;
+
                     if(isset($_POST['remove_acl_user_'.$id])){
                     }elseif(isset($_POST['acl_user_'.$id])){
                         if($user != get_post('acl_user_'.$id)){