From 5754b7a264ab62d392158e937bc36e9d0be617dd Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Fri, 9 Jan 2009 15:39:38 -0700 Subject: [PATCH] Fix display of KB sizes. --- imp/lib/Contents.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/imp/lib/Contents.php b/imp/lib/Contents.php index 1b2fa0850..cdd967ab0 100644 --- a/imp/lib/Contents.php +++ b/imp/lib/Contents.php @@ -534,7 +534,7 @@ class IMP_Contents } $part['size'] = ($size > 1024) ? sprintf(_("%s MB"), number_format(max(($size / 1024)))) - : sprintf(_("%s KB"), round($size) || 1); + : sprintf(_("%s KB"), max(round($size), 1)); } /* Get part's icon. */ -- 2.11.0