From 5c1365ab434a507f4424a5af368e1731114fc2b6 Mon Sep 17 00:00:00 2001 From: tbrehm Date: Tue, 8 Mar 2011 15:35:19 +0000 Subject: [PATCH] Fixed: FS#1473 - Quota output formatting problem --- interface/web/sites/user_quota_stats.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/interface/web/sites/user_quota_stats.php b/interface/web/sites/user_quota_stats.php index 0109dc9d9..8b88d84e5 100644 --- a/interface/web/sites/user_quota_stats.php +++ b/interface/web/sites/user_quota_stats.php @@ -45,6 +45,10 @@ class list_action extends listform_actions { $rec['soft'] = $monitor_data['user'][$username]['soft']; $rec['hard'] = $monitor_data['user'][$username]['hard']; + if (!is_numeric($rec['used'])) $rec['used']=$rec['used'][1]; + if (!is_numeric($rec['soft'])) $rec['soft']=$rec['soft'][1]; + if (!is_numeric($rec['hard'])) $rec['hard']=$rec['hard'][1]; + if($rec['used'] > 1024) { $rec['used'] = round($rec['used'] / 1024,2).' MB'; } else { -- GitLab