Merge 8ae178c465
into 95901159d0
commit
30b6a9c845
|
@ -3060,7 +3060,7 @@ class H5PCore {
|
||||||
* @return int|string
|
* @return int|string
|
||||||
*/
|
*/
|
||||||
public static function returnBytes($val) {
|
public static function returnBytes($val) {
|
||||||
$val = trim($val);
|
$val = (int)trim($val);
|
||||||
$last = strtolower($val[strlen($val) - 1]);
|
$last = strtolower($val[strlen($val) - 1]);
|
||||||
$bytes = (int) $val;
|
$bytes = (int) $val;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue