Code

Avoid direct mapping of cn and mail.
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 27 Jul 2009 11:32:17 +0000 (11:32 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 27 Jul 2009 11:32:17 +0000 (11:32 +0000)
-Cyrus mailMethod couldn't be saved in some circumstances.

git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@13953 594d385d-05f5-0310-b6e9-bd551577e9d8

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

index 5bdd24b240087ad5e9fb0f9587beaa8ae454a5ca..56361f493ac6f7ae2f470c938e3a958c38aa5cb5 100644 (file)
@@ -54,7 +54,7 @@ class mailgroup extends plugin
      */
     foreach(array("uid","cn") as $attr){
       if(isset($this->parent->by_object['group']) && isset($this->parent->by_object['group']->$attr)){
-        $this->$attr = &$this->parent->by_object['group']->$attr;
+        $this->$attr = $this->parent->by_object['group']->$attr;
       }elseif(isset($this->attrs[$attr])){
         $this->$attr = $this->attrs[$attr][0];
       }
@@ -79,7 +79,7 @@ class mailgroup extends plugin
      *  mail address with the accounts cn.
      */ 
     if(!$this->mailMethod->isModifyableMail() && !$this->initially_was_account){
-      $this->mail = &$base_object->cn;
+      $this->mail = $base_object->cn;
     }
 
     /* Load folder_acls with defaults.