Code

Remove empty mail quota ..
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 28 Jul 2005 07:06:27 +0000 (07:06 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 28 Jul 2005 07:06:27 +0000 (07:06 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1021 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/personal/mail/class_mailAccount.inc

index 9eb98f676efc6b57dfa1d136c1e816170f88dadc..f931376497c9c963f0bfeccab889a3415c7af398 100644 (file)
@@ -632,6 +632,11 @@ class mailAccount extends plugin
     $id= $method->uattrib;
     $method->fixAttributesOnStore($this);
 
+    /* Remove Mailquota if = "" */
+    if($this->attrs['gosaMailQuota']=="") {
+      $this->attrs['gosaMailQuota']=array();
+    }
+
     if(empty($this->attrs['gosaSpamMailbox'])){
       unset($this->attrs['gosaSpamMailbox']);
     }