fix: explicitly cast seconds to int in iso8601_duration helper function
episode page was unaccessible on with php8.1 and dev mode
This commit is contained in:
parent
3b73c67250
commit
779653f75b
|
@ -305,7 +305,7 @@ if (! function_exists('iso8601_duration')) {
|
|||
function iso8601_duration(float $seconds): string
|
||||
{
|
||||
$days = floor($seconds / 86400);
|
||||
$seconds %= 86400;
|
||||
$seconds = (int) $seconds % 86400;
|
||||
|
||||
$hours = floor($seconds / 3600);
|
||||
$seconds %= 3600;
|
||||
|
|
Loading…
Reference in New Issue