From bd8af75b6afe09555128275d12c41df9f7cfa4d7 Mon Sep 17 00:00:00 2001 From: hickert Date: Thu, 28 Jul 2005 07:07:39 +0000 Subject: [PATCH] Added check to prevent "gosamailquato undefined " git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1022 594d385d-05f5-0310-b6e9-bd551577e9d8 --- include/class_mail-methods-kolab.inc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/include/class_mail-methods-kolab.inc b/include/class_mail-methods-kolab.inc index e459411fa..346e75a07 100644 --- a/include/class_mail-methods-kolab.inc +++ b/include/class_mail-methods-kolab.inc @@ -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){ -- 2.30.2