From a31201dfd3bc6aa9516c4e430e4e17504c491399 Mon Sep 17 00:00:00 2001 From: "B.Fatih KOZ" Date: Tue, 8 Jun 2021 18:00:18 +0300 Subject: [PATCH] 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 --- app/helpers.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/helpers.php b/app/helpers.php index 59fc0e52..d881a4fb 100644 --- a/app/helpers.php +++ b/app/helpers.php @@ -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; }