From 4ffb51e51f89a45256836fb55ad1c29f5e06beb2 Mon Sep 17 00:00:00 2001 From: ftimme <ft@falkotimme.com> Date: Mon, 19 Sep 2011 06:17:52 -0400 Subject: [PATCH] - Added nginx support to the installer. --- interface/web/sites/user_quota_stats.php | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/interface/web/sites/user_quota_stats.php b/interface/web/sites/user_quota_stats.php index 0109dc9..8b88d84 100644 --- a/interface/web/sites/user_quota_stats.php +++ b/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 { -- Gitblit v1.9.1