diff options
author | Aleksander Machniak <alec@alec.pl> | 2013-10-02 12:51:48 (GMT) |
---|---|---|
committer | Aleksander Machniak <alec@alec.pl> | 2013-10-02 13:13:42 (GMT) |
commit | 6891db5325215d212fc086cef33e26bec9a40cce (patch) | |
tree | 18e194ea06977008a882e7c3de7922345c3c4334 | |
parent | 8058e9c0e2b19b53045e47a9e08d5e408be5171b (diff) | |
download | kolab-wap-6891db5325215d212fc086cef33e26bec9a40cce.tar.gz |
Fix mailquota value formatting (Bug #2309)
-rw-r--r-- | lib/kolab_html.php | 2 |
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'; } |