From 8ae178c465bfd02630004adcbe4550bb2b23d758 Mon Sep 17 00:00:00 2001 From: VASILEIOS SOTIRAS Date: Wed, 29 Nov 2017 16:48:56 +0000 Subject: [PATCH] update returnBytes avoid warning on string to text multiplication on PHP7 --- h5p.classes.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;