summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2013-10-02 12:51:48 (GMT)
committerAleksander Machniak <alec@alec.pl>2013-10-02 13:13:42 (GMT)
commit6891db5325215d212fc086cef33e26bec9a40cce (patch)
tree18e194ea06977008a882e7c3de7922345c3c4334
parent8058e9c0e2b19b53045e47a9e08d5e408be5171b (diff)
downloadkolab-wap-6891db5325215d212fc086cef33e26bec9a40cce.tar.gz
Fix mailquota value formatting (Bug #2309)
-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';
}