From: hickert Date: Thu, 22 Nov 2007 12:27:49 +0000 (+0000) Subject: Tested groupMail with cyrus mail method - works. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=5545bec4f1142304cd427f3cf726c919e2c4a7c0;p=gosa.git Tested groupMail with cyrus mail method - works. - Some minor changes git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@7852 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/admin/groups/class_groupMail.inc b/plugins/admin/groups/class_groupMail.inc index fb5e15ba0..3dbdf1b62 100644 --- a/plugins/admin/groups/class_groupMail.inc +++ b/plugins/admin/groups/class_groupMail.inc @@ -365,10 +365,10 @@ class mailgroup extends plugin } /* Add ACL? */ + if (isset($_POST["add_acl"])){ + $this->imapacl[""]= "l"; + } foreach ($this->indexed_user as $nr => $user){ - if (isset($_POST["add_$nr"])){ - $this->imapacl[""]= "l"; - } if (isset($_POST["del_$nr"])){ unset ($this->imapacl[$user]); } @@ -575,8 +575,6 @@ class mailgroup extends plugin } $tmp.= " "; if ($nr == $count - 1){ - $tmp.= ""; } if ($count > 3){ $tmp.= "indexed_user[$nr]= $user; $this->indexed_acl[$nr++]= $acl; } + $tmp.= ""; $smarty->assign("plusattributes", $tmp); /* Show main page */ @@ -817,8 +816,12 @@ I: Only insider delivery */ */ foreach ($this->imapacl as $user => $acl){ + if (empty($user) || $user == ""){ + unset($this->imapacl[$user]); + } + /* Skip placeholder */ - if ($user == "" || preg_match("/%members%/",$user)){ + if (empty($user) || $user == "" || preg_match("/%members%/",$user)){ continue; }