Code

Fixed mailtab, to work with new cleanup method
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 13 Feb 2006 09:12:13 +0000 (09:12 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 13 Feb 2006 09:12:13 +0000 (09:12 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2668 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/personal/mail/class_mailAccount.inc

index 25e866bc9960aeddee318f0dd3dade8bc6c9b4f5..5b5098e509d07d50ed89a96a74bac369d9121fd3 100644 (file)
@@ -54,8 +54,8 @@ class mailAccount extends plugin
       "lrswipcd" => "write", "lrswipcda" => "all" );
 
   /* attribute list for save action */
-  var $attributes= array("mail", "gosaMailServer", "gosaMailQuota", "gosaMailMaxSize",
-      "gosaMailDeliveryMode", "gosaSpamSortLevel", "gosaSpamMailbox",
+  var $attributes= array("mail", "gosaMailServer", "gosaMailQuota", "gosaMailMaxSize","gosaMailForwardingAddress",
+      "gosaMailDeliveryMode", "gosaSpamSortLevel", "gosaSpamMailbox","gosaMailAlternateAddress",
       "gosaVacationMessage", "uid");
   var $objectclasses= array("gosaMailAccount");
 
@@ -92,6 +92,7 @@ class mailAccount extends plugin
 
       /* Load attributes containing arrays */
       foreach (array("gosaMailAlternateAddress", "gosaMailForwardingAddress") as $val){
+        $this->$val = array();
         if (isset($this->attrs["$val"]["count"])){
           for ($i= 0; $i<$this->attrs["$val"]["count"]; $i++){
             array_push($this->$val, $this->attrs["$val"][$i]);