Commit 4b841be6 authored by Côme Chilliet's avatar Côme Chilliet
Browse files

Merge branch '5966-dovecot-connection-error-2' into '1.3-fixes'

Resolve "dovecot connection error"

See merge request fusiondirectory/fd-plugins!649
parents 6996cc0e b850ad12
......@@ -137,7 +137,7 @@ class mailMethodDovecot extends mailMethod
if (($quota_value['STORAGE']['limit'] == 2147483647) || ($quota_value['STORAGE']['limit'] <= 0)) {
$this->quotaValue = '';
} else {
$this->quotaValue = $quota_value['STORAGE']['limit'] / 1024;
$this->quotaValue = int($quota_value['STORAGE']['limit'] / 1024);
}
$this->quota_loaded = TRUE;
......
......@@ -105,7 +105,7 @@ class mailAccount extends simplePlugin
array()
),
new MailQuotaAttribute (
_('Quota size'), 'Define quota size in MB',
_('Quota size'), _('Define quota size in MiB'),
'gosaMailQuota', FALSE,
0, FALSE
)
......
......@@ -635,7 +635,7 @@ class mailMethodRenaterPartage extends mailMethod
{
if ($this->cacheAccount()) {
/* Partage sends quota in bytes */
return $this->cachedAccount['account']['quota'] / (1024 * 1024);
return int($this->cachedAccount['account']['quota'] / (1024 * 1024));
}
return $quotaValue;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment