summaryrefslogtreecommitdiff
path: root/program
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2009-06-01 16:33:51 +0000
committeralecpl <alec@alec.pl>2009-06-01 16:33:51 +0000
commit47f072523b06b8f0aa5981b593862172963a6f98 (patch)
treee7c906a8791bed61c270c311b3f72c444c792e43 /program
parent0e99d37a18cf81b549b8fc7e8948e9bd338deaad (diff)
- Fix displaying of big maximum upload filesize (#1485889)
Diffstat (limited to 'program')
-rw-r--r--program/include/rcube_shared.inc6
1 files changed, 3 insertions, 3 deletions
diff --git a/program/include/rcube_shared.inc b/program/include/rcube_shared.inc
index 9bbc8299b..9278654e3 100644
--- a/program/include/rcube_shared.inc
+++ b/program/include/rcube_shared.inc
@@ -238,12 +238,12 @@ function get_boolean($str)
* Parse a human readable string for a number of bytes
*
* @param string Input string
- * @return int Number of bytes
+ * @return float Number of bytes
*/
function parse_bytes($str)
{
if (is_numeric($str))
- return intval($str);
+ return floatval($str);
if (preg_match('/([0-9]+)([a-z])/i', $str, $regs))
{
@@ -262,7 +262,7 @@ function parse_bytes($str)
}
}
- return intval($bytes);
+ return floatval($bytes);
}
/**