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:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user