From 3864f47b555ca7b5f544d34ed95a03cabb244aa7 Mon Sep 17 00:00:00 2001 From: Steven Mondji-Lerider Date: Thu, 27 Sep 2012 10:11:48 +0000 Subject: [PATCH] bugfix quota values where not displayed properly --- bureau/admin/quotas_oneuser.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/bureau/admin/quotas_oneuser.php b/bureau/admin/quotas_oneuser.php index 66517551..48cbaa82 100644 --- a/bureau/admin/quotas_oneuser.php +++ b/bureau/admin/quotas_oneuser.php @@ -9,7 +9,7 @@ if (!isset($mode)) { # when included from adm_login, mode is not set ?>
-

+

user["login"]; ?>

@@ -17,7 +17,7 @@ if (!isset($mode)) { # when included from adm_login, mode is not set get_size_web_sum_user($c["uid"]); + $totalweb = $quota->get_size_web_sum_user($mem->user["uid"]); echo "

"._("Web Space:")." "; echo sprintf("%.1f", $totalweb / 1024)." "._("MB"); @@ -38,7 +38,7 @@ if (!isset($mode)) { # when included from adm_login, mode is not set enum_domains($c["uid"]); + $domaines_user = $dom->enum_domains($mem->user["uid"]); $totalmail=0; foreach ($domaines_user as $domaine) { $mstmp = $quota->get_size_mail_sum_domain($domaine); @@ -99,7 +99,7 @@ if (!isset($mode)) { # when included from adm_login, mode is not set get_size_db_sum_user($c["login"]); + $totaldb = $quota->get_size_db_sum_user($mem->user["login"]); echo "

"._("Databases:")." "; echo sprintf("%.1f", $totaldb/(1024*1024))." "._("MB"); @@ -116,7 +116,7 @@ if (!isset($mode)) { # when included from adm_login, mode is not set get_size_db_details_user($c["login"]); + $db_sizes = $quota->get_size_db_details_user($mem->user["login"]); foreach ($db_sizes as $d) { echo "".$d["db"]." get_size_mailman_details_user($c["uid"]); + $mailman_size = $quota->get_size_mailman_details_user($mem->user["uid"]); foreach ($mailman_size as $d) { echo "".$d["list"]."