Commit e82e5936 authored by Côme Chilliet's avatar Côme Chilliet

Merge branch 'cherry-pick-1d46b3ab' into '1.4-dev'

Merge branch '5966-dovecot-connection-error' into '1.4-dev'

See merge request fusiondirectory/fd-plugins!652
parents 3b02bd4e 859ea6e9
......@@ -137,7 +137,7 @@ class mailMethodDovecot extends mailMethod
if (($quota_value['STORAGE']['limit'] == 2147483647) || ($quota_value['STORAGE']['limit'] <= 0)) {
$this->quotaValue = '';
} else {
$this->quotaValue = int($quota_value['STORAGE']['limit'] / 1024);
$this->quotaValue = (int)($quota_value['STORAGE']['limit'] / 1024);
}
$this->quota_loaded = TRUE;
......
......@@ -634,7 +634,7 @@ class mailMethodRenaterPartage extends mailMethod
{
if ($this->cacheAccount()) {
/* Partage sends quota in bytes */
return int($this->cachedAccount['account']['quota'] / (1024 * 1024));
return (int)($this->cachedAccount['account']['quota'] / (1024 * 1024));
}
return $quotaValue;
}
......
Markdown is supported
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