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>
pull/1228/head
B.Fatih KOZ 3 years ago committed by GitHub
parent 9d336c1140
commit a31201dfd3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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;
}

Loading…
Cancel
Save