tbrehm
2011-03-08 5c1365ab434a507f4424a5af368e1731114fc2b6
Fixed: FS#1473 - Quota output formatting problem
1 files modified
4 ■■■■ changed files
interface/web/sites/user_quota_stats.php 4 ●●●● patch | view | raw | blame | history
interface/web/sites/user_quota_stats.php
@@ -45,6 +45,10 @@
        $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 {