diff --git a/interface/web/sites/user_quota_stats.php b/interface/web/sites/user_quota_stats.php index 0109dc9d9ae0048faa23c27d5c85d868abf64acf..8b88d84e57ff7c72c1bb5344d5669ed23d51500e 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 {