Pure numbers are returned as bytes right away
This commit is contained in:
parent
15d134124b
commit
4659927d7a
|
@ -394,6 +394,9 @@ class OC_Helper {
|
|||
*/
|
||||
public static function computerFileSize($str) {
|
||||
$str = strtolower($str);
|
||||
if (is_numeric($str)) {
|
||||
return $str;
|
||||
}
|
||||
|
||||
$bytes_array = array(
|
||||
'b' => 1,
|
||||
|
|
Loading…
Reference in New Issue