From 778fd3ba658fe9664b7bb877c9d822a256aedbd8 Mon Sep 17 00:00:00 2001 From: Michael Kaufmann Date: Fri, 15 Dec 2023 09:32:02 +0100 Subject: [PATCH] fix wrong size-unit for mailquota-dashboard-info; fixes #1207 Signed-off-by: Michael Kaufmann --- customer_index.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/customer_index.php b/customer_index.php index 9ea4ca8384..ee3bdbddb3 100644 --- a/customer_index.php +++ b/customer_index.php @@ -115,8 +115,8 @@ $userinfo['traffic_bytes_used'] = $userinfo['traffic_used'] * 1024; if (Settings::Get('system.mail_quota_enabled')) { - $userinfo['email_quota_bytes'] = ($userinfo['email_quota'] > -1) ? $userinfo['email_quota'] * 1024 : -1; - $userinfo['email_quota_bytes_used'] = $userinfo['email_quota_used'] * 1024; + $userinfo['email_quota_bytes'] = ($userinfo['email_quota'] > -1) ? $userinfo['email_quota'] * 1024 * 1024 : -1; + $userinfo['email_quota_bytes_used'] = $userinfo['email_quota_used'] * 1024 * 1024; } if ($usages) {