diff options
| author | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2009-06-01 16:33:51 +0000 |
|---|---|---|
| committer | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2009-06-01 16:33:51 +0000 |
| commit | 7fb412e5f0ad9c397139b63c5ed729dedbe36d04 (patch) | |
| tree | d026bde4a5cd12b2923bea5733487af5ba27c8cf /roundcubemail/program | |
| parent | 66cf63f213b507601b6841ac119418be7759800d (diff) | |
- Fix displaying of big maximum upload filesize (#1485889)
git-svn-id: https://svn.roundcube.net/trunk@2590 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program')
| -rw-r--r-- | roundcubemail/program/include/rcube_shared.inc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/roundcubemail/program/include/rcube_shared.inc b/roundcubemail/program/include/rcube_shared.inc index 9bbc8299b..9278654e3 100644 --- a/roundcubemail/program/include/rcube_shared.inc +++ b/roundcubemail/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); } /** |
