forked from extern/egroupware
return only integer quota (im MB) as Dovecot does not deal with floats
This commit is contained in:
parent
0addb59e99
commit
a43c5d3f1f
@ -367,7 +367,7 @@ class Sql extends Mail\Smtp
|
|||||||
if ($return_extra)
|
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;
|
$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();
|
$mailboxes = array();
|
||||||
foreach($this->db->select(self::TABLE, $cols,
|
foreach($this->db->select(self::TABLE, $cols,
|
||||||
|
Loading…
Reference in New Issue
Block a user