From 4a596d41473f37c5a12a041b4862813de3a7e503 Mon Sep 17 00:00:00 2001 From: Till Brehm Date: Wed, 11 Feb 2015 19:07:23 +0100 Subject: [PATCH] Fixed web quota stats problem "vlibTemplate Warning: Invalid loop structure passed to vlibTemplate::setLoop() (loop name: records)" --- interface/web/sites/user_quota_stats.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/interface/web/sites/user_quota_stats.php b/interface/web/sites/user_quota_stats.php index 2a791f1b7..dc71dc3df 100644 --- a/interface/web/sites/user_quota_stats.php +++ b/interface/web/sites/user_quota_stats.php @@ -47,7 +47,6 @@ class list_action extends listform_actions { $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 @@ class list_action extends listform_actions { $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]; -- GitLab