Florian Schaal
2013-12-27 3319b4510b8d03d864ddcc525a7396b7a91fda96
changed hard-coded conversion to formatBytes for mail-user-quota stats
1 files modified
6 ■■■■■ changed files
interface/web/mail/user_quota_stats.php 6 ●●●●● patch | view | raw | blame | history
interface/web/mail/user_quota_stats.php
@@ -15,6 +15,8 @@
//* Check permissions for module
$app->auth->check_module_permissions('mail');
$app->uses('functions');
$app->load('listform_actions');
// $tmp_rec = $app->db->queryOneRecord("SELECT data from monitor_data WHERE type = 'harddisk_quota' ORDER BY created DESC");
@@ -63,11 +65,15 @@
        $rec['used_sort'] = $rec['used'];
/*
        if($rec['used'] < 1544000) {
            $rec['used'] = round($rec['used'] / 1024, 4).' KB';
        } else {
            $rec['used'] = round($rec['used'] / 1048576, 4).' MB';
        }
*/
        $rec['used']=$app->functions->formatBytes($rec['used']);
        if ($rec['used'] == 'NAN') $rec['used']='0 KB';
        //* The variable "id" contains always the index variable
        $rec['id'] = $rec[$this->idx_key];