diff options
Diffstat (limited to 'lib/private/legacy/helper.php')
-rw-r--r-- | lib/private/legacy/helper.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/legacy/helper.php b/lib/private/legacy/helper.php index e88e967a57b..cd69b40b76b 100644 --- a/lib/private/legacy/helper.php +++ b/lib/private/legacy/helper.php @@ -141,7 +141,7 @@ class OC_Helper { public static function computerFileSize($str) { $str = strtolower($str); if (is_numeric($str)) { - return floatval($str); + return (float)$str; } $bytes_array = array( @@ -158,7 +158,7 @@ class OC_Helper { 'p' => 1024 * 1024 * 1024 * 1024 * 1024, ); - $bytes = floatval($str); + $bytes = (float)$str; if (preg_match('#([kmgtp]?b?)$#si', $str, $matches) && !empty($bytes_array[$matches[1]])) { $bytes *= $bytes_array[$matches[1]]; |