From a43c5d3f1f6c83841adb3d320612ca4377514422 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Thu, 4 Jul 2019 16:14:26 +0200 Subject: [PATCH] return only integer quota (im MB) as Dovecot does not deal with floats --- api/src/Mail/Smtp/Sql.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/src/Mail/Smtp/Sql.php b/api/src/Mail/Smtp/Sql.php index 43ccdda9ab..a750244350 100644 --- a/api/src/Mail/Smtp/Sql.php +++ b/api/src/Mail/Smtp/Sql.php @@ -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,