Till Brehm
2015-02-11 4a596d41473f37c5a12a041b4862813de3a7e503
Fixed web quota stats problem "vlibTemplate Warning: Invalid loop structure passed to vlibTemplate::setLoop() (loop name: records)"
1 files modified
2 ■■■ changed files
interface/web/sites/user_quota_stats.php 2 ●●● patch | view | raw | blame | history
interface/web/sites/user_quota_stats.php
@@ -47,7 +47,6 @@
        $rec['domain'] = $rec['domain'].($server['server_name'] != '' ? ' ('.$server['server_name'].')' : '');
        
        $rec['used'] = $monitor_data['user'][$username]['used'];
        $rec['used_sort'] = $rec['used'];
        $rec['soft'] = $monitor_data['user'][$username]['soft'];
        $rec['hard'] = $monitor_data['user'][$username]['hard'];
        $rec['files'] = $monitor_data['user'][$username]['files'];
@@ -59,6 +58,7 @@
                $rec['used'] = $rec['used'][1];
            }
        }
        $rec['used_sort'] = $rec['used'];
        if (!is_numeric($rec['soft'])) $rec['soft']=$rec['soft'][1];
        if (!is_numeric($rec['hard'])) $rec['hard']=$rec['hard'][1];
        if (!is_numeric($rec['files'])) $rec['files']=$rec['files'][1];