Fix secstohhmm typecast for PHP 8 (#1230)

* Update helpers.php

Looks like php8 is not liking numeric strings as we like them.

Fixes #1229

* StyleFix

Co-authored-by: Nabeel S <nabeelio@users.noreply.github.com>
This commit is contained in:
B.Fatih KOZ 2021-06-08 18:00:18 +03:00 committed by GitHub
parent 9d336c1140
commit a31201dfd3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -369,7 +369,7 @@ if (!function_exists('secstohhmm')) {
*/
function secstohhmm($seconds)
{
$seconds = round($seconds);
$seconds = round((float) $seconds);
$hhmm = sprintf('%02d%02d', ($seconds / 3600), ($seconds / 60 % 60));
echo $hhmm;
}