parent
d1bbed49fc
commit
0ce7d66c3a
|
@ -2969,7 +2969,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]);
|
||||||
switch ($last) {
|
switch ($last) {
|
||||||
case 'g':
|
case 'g':
|
||||||
|
|
Loading…
Reference in New Issue