return only integer quota (im MB) as Dovecot does not deal with floats

This commit is contained in:
Ralf Becker 2019-07-04 16:14:26 +02:00
parent 0addb59e99
commit a43c5d3f1f

View File

@ -367,7 +367,7 @@ class Sql extends Mail\Smtp
if ($return_extra)
{
$join .= ' LEFT JOIN '.self::TABLE.' quota ON quota.account_id='.Api\Accounts\Sql::TABLE.'.account_id AND quota.mail_type='.self::TYPE_QUOTA;
$cols .= ','.Api\Accounts\Sql::TABLE.'.account_id AS account_id,quota.mail_value AS quota';
$cols .= ','.Api\Accounts\Sql::TABLE.'.account_id AS account_id,ROUND(quota.mail_value,0) AS quota';
}
$mailboxes = array();
foreach($this->db->select(self::TABLE, $cols,