mirror of
https://github.com/Xkeeper0/jul.git
synced 2025-05-19 08:40:21 -07:00
fix timeunits2() for 0 sec
This commit is contained in:
parent
274a70e66f
commit
e1b2e62262
@ -333,6 +333,7 @@ function timeunits($sec){
|
||||
}
|
||||
|
||||
function timeunits2($sec){
|
||||
if (floor($sec) === 0) { return "0 sec."; }
|
||||
$d = floor($sec/86400);
|
||||
$h = floor($sec/3600)%24;
|
||||
$m = floor($sec/60)%60;
|
||||
|
Loading…
x
Reference in New Issue
Block a user