Code

udpated mailAccount
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 4 Apr 2006 10:48:38 +0000 (10:48 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 4 Apr 2006 10:48:38 +0000 (10:48 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2976 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/personal/mail/class_mailAccount.inc

index 5b892e79ca5762e94c947d9c8c83bfbf04da88be..045d4fe84f719e808fff324c2670e985cd027ef0 100644 (file)
@@ -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);
       }
     }