summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2013-10-02 14:51:48 +0200
committerAleksander Machniak <alec@alec.pl>2013-10-02 14:51:48 +0200
commitc4ff3570cb284f0b786146b169c0def686c84ca3 (patch)
tree01d103eee9fbe0d70bdddb3910cf4865329e7f10 /lib
parenta7e05dd00cc310f762cd3e3f081cc5973195ef09 (diff)
downloadwebadmin-c4ff3570cb284f0b786146b169c0def686c84ca3.tar.gz
Fix mailquota value formatting (Bug #2309)
Diffstat (limited to 'lib')
-rw-r--r--lib/kolab_html.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/kolab_html.php b/lib/kolab_html.php
index d54eabc..8b296f8 100644
--- a/lib/kolab_html.php
+++ b/lib/kolab_html.php
@@ -170,7 +170,7 @@ class kolab_html
$attribs['value'] /= 1024;
$unit = 'mb';
}
- if ($attribs['value'] >= 1024) {
+ if ($attribs['value'] % 1024 == 0 && $attribs['value'] >= 1024) {
$attribs['value'] /= 1024;
$unit = 'gb';
}