From: hickert Date: Tue, 4 Apr 2006 10:48:38 +0000 (+0000) Subject: udpated mailAccount X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=276327c1e8b38e9eeae341986fb3690e2236e32c;p=gosa.git udpated mailAccount git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2976 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/personal/mail/class_mailAccount.inc b/plugins/personal/mail/class_mailAccount.inc index 5b892e79c..045d4fe84 100644 --- a/plugins/personal/mail/class_mailAccount.inc +++ b/plugins/personal/mail/class_mailAccount.inc @@ -105,6 +105,9 @@ class mailAccount extends plugin $method= new $this->method($this->config); $id= $method->uattrib; + + /* Adapt attributes if needed */ + $method->fixAttributesOnLoad($this); if ($method->connect($this->attrs["gosaMailServer"][0])){ $quota= $method->getQuota($this->folder_prefix.$this->$id); @@ -120,10 +123,11 @@ class mailAccount extends plugin $this->folder_prefix.$this->$id, $this->$id); $method->disconnect(); + }else{ + /* Could not connect to ldap. + */ + $this->gosaMailQuota = $this->attrs['gosaMailQuota'][0]; } - - /* Adapt attributes if needed */ - $method->fixAttributesOnLoad($this); } }