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:
parent
9d336c1140
commit
a31201dfd3
@ -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…
Reference in New Issue
Block a user