Fix in CoreLib Bytes for null to trim
This commit is contained in:
1 parent
2a3798c8c2
commit
7773b78e17
1 file changed
+1
-1
@@ -134,7 +134,7 @@ class Byte
|
||||
// remove all non valid characters from the number
|
||||
$number = preg_replace('/[^0-9\.]/', '', $matches[2]);
|
||||
// final clean up and convert to float
|
||||
$number = (float)trim($number);
|
||||
$number = (float)trim((string)$number);
|
||||
// convert any mb/gb/etc to single m/b
|
||||
$unit = preg_replace('/[^bkmgtpezy]/i', '', $matches[3]);
|
||||
if ($unit) {
|
||||
|
||||
Reference in new issue
Block a user