From: Michael M Slusarz Date: Fri, 9 Jan 2009 22:39:38 +0000 (-0700) Subject: Fix display of KB sizes. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=5754b7a264ab62d392158e937bc36e9d0be617dd;p=horde.git Fix display of KB sizes. --- 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. */