Fix display of KB sizes.
authorMichael M Slusarz <slusarz@curecanti.org>
Fri, 9 Jan 2009 22:39:38 +0000 (15:39 -0700)
committerMichael M Slusarz <slusarz@curecanti.org>
Fri, 9 Jan 2009 22:39:38 +0000 (15:39 -0700)
imp/lib/Contents.php

index 1b2fa08..cdd967a 100644 (file)
@@ -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. */