Cast bytes to int before multiplying it.

Removes warning in PHP 7.0+
pull/10/merge
thomasmars 2017-05-25 13:52:50 +02:00
parent d1bbed49fc
commit 0ce7d66c3a
1 changed files with 1 additions and 1 deletions

View File

@ -2969,7 +2969,7 @@ class H5PCore {
* @return int|string
*/
public static function returnBytes($val) {
$val = trim($val);
$val = (int) trim($val);
$last = strtolower($val[strlen($val) - 1]);
switch ($last) {
case 'g':