Skip to content

Commit 4a596d4

Browse files
author
Till Brehm
committed
Fixed web quota stats problem "vlibTemplate Warning: Invalid loop structure passed to vlibTemplate::setLoop() (loop name: records)"
1 parent cdb2c68 commit 4a596d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

interface/web/sites/user_quota_stats.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ function prepareDataRow($rec)
4747
$rec['domain'] = $rec['domain'].($server['server_name'] != '' ? ' ('.$server['server_name'].')' : '');
4848

4949
$rec['used'] = $monitor_data['user'][$username]['used'];
50-
$rec['used_sort'] = $rec['used'];
5150
$rec['soft'] = $monitor_data['user'][$username]['soft'];
5251
$rec['hard'] = $monitor_data['user'][$username]['hard'];
5352
$rec['files'] = $monitor_data['user'][$username]['files'];
@@ -59,6 +58,7 @@ function prepareDataRow($rec)
5958
$rec['used'] = $rec['used'][1];
6059
}
6160
}
61+
$rec['used_sort'] = $rec['used'];
6262
if (!is_numeric($rec['soft'])) $rec['soft']=$rec['soft'][1];
6363
if (!is_numeric($rec['hard'])) $rec['hard']=$rec['hard'][1];
6464
if (!is_numeric($rec['files'])) $rec['files']=$rec['files'][1];

0 commit comments

Comments
 (0)