update returnBytes
avoid warning on string to text multiplication on PHP7pull/44/head
parent
95901159d0
commit
8ae178c465
|
@ -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