Verified Commit a4e9361e authored by Côme Chilliet's avatar Côme Chilliet
Browse files

🚑 fix(mail) Fix casts to int syntax

issue #5966
parent 4b841be6
......@@ -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;
......
......@@ -635,7 +635,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;
}
......
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