diff --git a/h5p.classes.php b/h5p.classes.php index d8ed62e..7990c5c 100644 --- a/h5p.classes.php +++ b/h5p.classes.php @@ -3060,7 +3060,7 @@ class H5PCore { * @return int|string */ public static function returnBytes($val) { - $val = trim($val); + $val = (int)trim($val); $last = strtolower($val[strlen($val) - 1]); $bytes = (int) $val;