From 72695f0356210b5ca68d33d09e91c00ed9d6c2b6 Mon Sep 17 00:00:00 2001
From: tbrehm <t.brehm@ispconfig.org>
Date: Tue, 12 Feb 2013 04:55:44 -0500
Subject: [PATCH] Merged Revisions 3771-3801 from stable branch.

---
 interface/web/sites/user_quota_stats.php |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/interface/web/sites/user_quota_stats.php b/interface/web/sites/user_quota_stats.php
index bf646b3..56cc02c 100644
--- a/interface/web/sites/user_quota_stats.php
+++ b/interface/web/sites/user_quota_stats.php
@@ -60,7 +60,7 @@
 		if($rec['used'] > 1024) {
 			$rec['used'] = round($rec['used'] / 1024,2).' MB';
 		} else {
-			$rec['used'] .= ' KB';
+			if ($rec['used'] != '') $rec['used'] .= ' KB';
 		}
 		
 		if($rec['soft'] > 1024) {
@@ -75,6 +75,8 @@
 			$rec['hard'] .= ' KB';
 		}
 		
+		if($rec['soft'] == " KB") $rec['soft'] = $app->lng('unlimited');
+		if($rec['hard'] == " KB") $rec['hard'] = $app->lng('unlimited');
 		
 		
 		/*

--
Gitblit v1.9.1