From: hickert Date: Fri, 30 Jun 2006 04:01:41 +0000 (+0000) Subject: Fixed gosaMailServer attribute, which possibly is an array if mail tab wasn't opened- X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=059840af6df8d57d6ebc20c47e67c146d71319a7;p=gosa.git Fixed gosaMailServer attribute, which possibly is an array if mail tab wasn't opened- git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@3999 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/personal/mail/class_mailAccount.inc b/plugins/personal/mail/class_mailAccount.inc index bff7beeb0..ffaabee6e 100644 --- a/plugins/personal/mail/class_mailAccount.inc +++ b/plugins/personal/mail/class_mailAccount.inc @@ -124,6 +124,13 @@ class mailAccount extends plugin /* Adapt attributes if needed */ $method->fixAttributesOnLoad($this); + + /* FixAttributesOnLoad possibly creates an array out of gosaMailServer. + If the mail tab wasn't opened once before saving, the account can't be saved */ + if(is_array($this->gosaMailServer)){ + $this->gosaMailServer = $this->gosaMailServer[0]; + } + if ($method->connect($this->attrs["gosaMailServer"][0])){ /* Update quota values */