mirror of
https://github.com/Xkeeper0/jul.git
synced 2025-07-26 09:42:01 -07:00
fix timeunits2() for 0 sec
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user