Code

Added check to prevent "gosamailquato undefined "
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 28 Jul 2005 07:07:39 +0000 (07:07 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 28 Jul 2005 07:07:39 +0000 (07:07 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1022 594d385d-05f5-0310-b6e9-bd551577e9d8

include/class_mail-methods-kolab.inc

index e459411fa417855cf392df5d105de53e3d61f4bd..346e75a07d17df563554ec82d9e8ea079e9eb02f 100644 (file)
@@ -64,7 +64,11 @@ class mailMethodKolab extends mailMethodCyrus
       }
     }
     // without this line gosaMailQuota is in MB instead of KB 
-    $mailObject->gosaMailQuota=$mailObject->attrs['gosaMailQuota'][0];
+    if(isset($mailObject->attrs['gosaMailQuota'][0])){
+      $mailObject->gosaMailQuota=$mailObject->attrs['gosaMailQuota'][0];
+    }  
+    
+    
 
     /* Adjust server name if needed */
     foreach ($mailObject->config->data['SERVERS']['IMAP'] as $srv => $dummy){