projects
/
horde.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0d367fe
)
Fix display of KB sizes.
author
Michael M Slusarz
<slusarz@curecanti.org>
Fri, 9 Jan 2009 22:39:38 +0000
(15:39 -0700)
committer
Michael M Slusarz
<slusarz@curecanti.org>
Fri, 9 Jan 2009 22:39:38 +0000
(15:39 -0700)
imp/lib/Contents.php
patch
|
blob
|
history
diff --git
a/imp/lib/Contents.php
b/imp/lib/Contents.php
index
1b2fa08
..
cdd967a
100644
(file)
--- 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. */