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 11:00:18 -04:00
committed by GitHub
co-authored by Nabeel S
parent 9d336c1140
commit a31201dfd3
+1 -1
View File
@@ -369,7 +369,7 @@ if (!function_exists('secstohhmm')) {
*/ */
function secstohhmm($seconds) function secstohhmm($seconds)
{ {
$seconds = round($seconds); $seconds = round((float) $seconds);
$hhmm = sprintf('%02d%02d', ($seconds / 3600), ($seconds / 60 % 60)); $hhmm = sprintf('%02d%02d', ($seconds / 3600), ($seconds / 60 % 60));
echo $hhmm; echo $hhmm;
} }