From d81410a65b2453b3a09fc66b064eaa1fd09bdc59 Mon Sep 17 00:00:00 2001 From: hickert Date: Thu, 28 Jul 2005 07:06:27 +0000 Subject: [PATCH] Remove empty mail quota .. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1021 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/personal/mail/class_mailAccount.inc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/plugins/personal/mail/class_mailAccount.inc b/plugins/personal/mail/class_mailAccount.inc index 9eb98f676..f93137649 100644 --- a/plugins/personal/mail/class_mailAccount.inc +++ b/plugins/personal/mail/class_mailAccount.inc @@ -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']); } -- 2.30.2